R
Roshawn Dawson
Hi,
I have an .aspx page that contains an html form. Below is the code used for the form:
<form id="Shoes" method="post" runat="server">
<label for="q">Search:</label><br />
<asp:textbox id="q" maxlength="100" runat="server"/><br />
<label for="sz">Shoe Size (US):</label><br />
<asp:dropdownlist id="sz" runat="server"/><br /> <!-- this control is populated programmatically -->
<label for="tp">Type:</label><br />
<asp:dropdownlist id="tp" runat="server">
<asp:listitem value="24">Any</asp:listitem>
<asp:listitem value="2293">Athletic</asp:listitem>
<asp:listitem value="31920">Athletic-Inspired</asp:listitem>
</asp:dropdownlist><br />
<label for="cd">Condition:</label><br />
<asp:dropdownlist id="cd" runat="server">
<asp:listitem value="24">Any</asp:listitem>
<asp:listitem value="31919">New</asp:listitem>
</asp:dropdownlist><br />
<input type="submit" value="Search"/>
</form>
All is good here.
But should I specify any form variables and perform a postback, I can't access any of the form
controls using either the Request.Form collection or using Request.Querystring collection.
I have no idea why this is happening. Can anyone help this newbie?
Thanks,
Roshawn
I have an .aspx page that contains an html form. Below is the code used for the form:
<form id="Shoes" method="post" runat="server">
<label for="q">Search:</label><br />
<asp:textbox id="q" maxlength="100" runat="server"/><br />
<label for="sz">Shoe Size (US):</label><br />
<asp:dropdownlist id="sz" runat="server"/><br /> <!-- this control is populated programmatically -->
<label for="tp">Type:</label><br />
<asp:dropdownlist id="tp" runat="server">
<asp:listitem value="24">Any</asp:listitem>
<asp:listitem value="2293">Athletic</asp:listitem>
<asp:listitem value="31920">Athletic-Inspired</asp:listitem>
</asp:dropdownlist><br />
<label for="cd">Condition:</label><br />
<asp:dropdownlist id="cd" runat="server">
<asp:listitem value="24">Any</asp:listitem>
<asp:listitem value="31919">New</asp:listitem>
</asp:dropdownlist><br />
<input type="submit" value="Search"/>
</form>
All is good here.
But should I specify any form variables and perform a postback, I can't access any of the form
controls using either the Request.Form collection or using Request.Querystring collection.
I have no idea why this is happening. Can anyone help this newbie?
Thanks,
Roshawn