ddl response.redirect and passing value
Hello!
Here are the specs:
1 web form. on submit button, the record is updated in a recordset.
on this form there is a ddl with a response.redirect no auto-post back.
so far, it is working. on submit, the details are updated for the record and the page redirects to a new page depending on the dropdown selection.
however because the dropdown selection redirects to a URL, the database is updated with the URL name instead of the value in the box.
How do I get to change the session variable from url to selection. and how do I pass that variable to my next page?
here is the code:
<asp:DropDownList
OnSelectedIndexChanged="SubmitBtn_Click" ID="DeviceType" runat="server">
<asp:ListItem Value="">Choose</asp:ListItem>
<asp:ListItem Value="/site2.aspx">Other</asp:ListItem>
<asp:ListItem Value="/AllPCs.aspx">Laptop</asp:ListItem>
<asp:ListItem Value="/AllPCs.aspx">PC</asp:ListItem>
</asp:DropDownList>
Thanks for your help!
|