the dropdown list is showing data from database, but how to retrieve the selected value and store it in a session variable??
views:
147answers:
1
Q:
How to retrieve selected value from the dropdown list in asp.net and store it in session variable??
A:
You can use the Eval
or Bind
methods to Databind the SelectedValue in the dropdownlist
<asp:DropDownList ID="DropDownList1" runat="server"
SelectedValue='<%# Bind("ID") %>' />
Glennular
2010-05-15 00:41:45
@glennular :thanks
Parth
2010-05-15 01:39:48