Submit DropDown value to connection string?
dwiesemann | Posted 9:27am 12. September 2007 Server Time |
Hi to all,
first of all, this question I ask sounds dump... but I have been looking for a solution for more than a week now :-(
I have a dropdown which displays data from a access table
Now I want the user to select and pass on the value to the relative URL.
How can I do it?.
This dropdown (choose language) will be on allpages, so I just want to put an aspx.?L=<LANGUAGE CODE> behind it....
Your help is greatly apreciated.
Thanks in advance.
Dirk
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
DataSourceID="SqlDataSource1" DataTextField="LanguageEN"
DataValueField="LanguageCode">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [LanguageEN], [LanguageCode] FROM [Languages] ORDER BY [LanguageCode]">
</asp:SqlDataSource> |