In main.aspx page, i have a drop down list:
<aspropDownList ID="ddl" runat="server" DataSourceID="filter_datasource"
DataTextField="status"
DataValueField="status"
AppendDataBoundItems="True"
AutoPostBack="True"
Font-Names="Arial"
Font-Size="8pt">
<asp:ListItem Value="-1" Selected="True">select</asp:ListItem>
</aspropDownList> cases.
----------
in my behind code main.aspx.cs, i can see these values:
Response.Write("index: " + ddl.SelectedIndex + "<br>");
Response.Write("item: " + ddl.SelectedItem + "<br>");
Response.Write("value: " + ddl.SelectedValue + "<br>");
My question is how can i print these values in main.aspx;
I had tried <% ddl.SelectedValue; %> ...etc. but it does not work. Please help
<aspropDownList ID="ddl" runat="server" DataSourceID="filter_datasource"
DataTextField="status"
DataValueField="status"
AppendDataBoundItems="True"
AutoPostBack="True"
Font-Names="Arial"
Font-Size="8pt">
<asp:ListItem Value="-1" Selected="True">select</asp:ListItem>
</aspropDownList> cases.
----------
in my behind code main.aspx.cs, i can see these values:
Response.Write("index: " + ddl.SelectedIndex + "<br>");
Response.Write("item: " + ddl.SelectedItem + "<br>");
Response.Write("value: " + ddl.SelectedValue + "<br>");
My question is how can i print these values in main.aspx;
I had tried <% ddl.SelectedValue; %> ...etc. but it does not work. Please help