I am using following code to show the drop down in my aspx page and the data loaded in the dropdown are occurring by SqlDatasource4
<asp:DropDownList ID="DropDownListnew" runat="server"
CssClass="ddlb" Width="210px" Height="30px" DataSourceID="SqlDataSource4"
DataTextField="OrderPeriod" DataValueField="OrderPeriodID">
</asp:DropDownList>
When i tried to access the Dropdown data in my C# file by following code:
string data = DropDownListnew.Text;
It prints the no of selected value, I want to store selected value in data string. How should i do that?
You can access it by;