Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate a field through hyperlink

Status
Not open for further replies.

JHDavis

Programmer
Aug 17, 2002
19
US
Can I pass a value to a textbox in a form using the hyperlink?

I want to send a generated email with data specific to that message. So the recipient won't have to type it in the form themselves.

I'm hoping for something like this sample url:


Is this possible?



Thanks
 
i wouldnt see why not try it and if you want use a URLEncode function so the url isn't as noticable when passing it thru.
 
When the user opens the form by clicking on the link, I'd like the work order text box to be filled with the work order number.
 
may be you can store the QueryString Variable in a session variable and pass it as a value to the textbox on form.

Session("WOrder")=Request.QueryString("workorder")

Then in the form you can pass Session("WOrder") as the text box value.

i hope i am not missing something...

-SecondToNone
 
Thanks!

I almost had it all along. Just a matter of syntax.

Where I had
...value="<%request.querystring("workorder")%>"

should have been
...value="<%= request.querystring("workorder") %>"

Thanks for the replies, I'm still learning!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top