Simple ASP/ASP.NET question. Getting a value from an HTML text box

Posted by Velika on Stack Overflow See other posts from Stack Overflow or by Velika
Published on 2010-03-31T16:49:18Z Indexed on 2010/03/31 16:53 UTC
Read the original article Hit count: 370

Filed under:
|

I have this in my ASPX page:

<input id="MY_LAST_FOCUS" name="MY_LAST_FOCUS" type="text" runat="server" />

In the Form Load of my VB.NET code behind I have this:

Dim s as String = Request("MY_LAST_FOCUS")

Why is s always empty even though the MY_LAST_FOCUS HTML text box has text in it?

© Stack Overflow or respective owner

Related posts about asp

Related posts about ASP.NET