vb.net post value

eli411 used Ask the Experts™
I had a problem with my vb.net app!  

sample.aspx form

<input type="hidden" name="myValue" >


strMyValue = myValue

and I can not get the myValue pass from the aspx form to the code behide for some reason!  Help!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try the below code:

<input type="hidden" id="myValue" runat="server" >

You have to put runat="server" so that it will be accessible in code behind. Also you have to use the "id" attribute instead of the "name" attribute.


I've requested that this question be deleted for the following reason:

Finally figure it out!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial