views:

147

answers:

1

the dropdown list is showing data from database, but how to retrieve the selected value and store it in a 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
@glennular :thanks
Parth