G
Guest
I've got the following code:
<%= "myText = " + Request.Form["myText"] %>
<form id="Form1" method="post" runat="server">
<input type="text" id="myText">
<input type="button" value="submit">
</form>
Using view->source in IE I see:
<form name="Form1" method="post" action="testform.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwxNzg0NjA0NTg0Ozs+i3a+vle2SX4KbtVWA04XJ100Y4s=" />
<input type="text" id="myText">
<input type="button" value="submit">
</form>
However you can't access myText in Request.Form when post back. Why isn't it
in Request.Form collection? Is it inside ViewState? Thanks, Moheb
<%= "myText = " + Request.Form["myText"] %>
<form id="Form1" method="post" runat="server">
<input type="text" id="myText">
<input type="button" value="submit">
</form>
Using view->source in IE I see:
<form name="Form1" method="post" action="testform.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE"
value="dDwxNzg0NjA0NTg0Ozs+i3a+vle2SX4KbtVWA04XJ100Y4s=" />
<input type="text" id="myText">
<input type="button" value="submit">
</form>
However you can't access myText in Request.Form when post back. Why isn't it
in Request.Form collection? Is it inside ViewState? Thanks, Moheb