Can a Hyperlink control be forced to Post as well as navigate?

J

John Kotuby

Hi all,
I have an asp:HyperLink control on a page which also contains a hidden form
field. I want the target page specified in the NavigateURL to be able read
the contents of the hidden form field but I also want to keep the look and
feel of a standard Hyperlink. I do not want the contents of the hidden field
passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a minimum
and for some reason think that Session variables use more resources than
posting a hidden field.

TIA
 
S

Scott Lloyd

Yeah. Just use a LinkButton instead then in the redirect after you're done
handling the event do a Response.Redirect.

Scott Lloyd
Lloyd Software
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top