Hi ,as per your query ,may be it will help you.
On Default.aspx page:
<asp:dropdownlist id="ddlSelctIntiger" runat="server" enableviewstate="true" autopostback="true" xmlns:asp="#unknown">
onselectedindexchanged="OnddlSelctIntigerIndexChanged">
</asp:dropdownlist>
on Default.cs Page:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindDataToDropDownList();
}
}
private void BindDataToDropDownList()
{
ddlSelctIntiger.Items.Add("Five");
ddlSelctIntiger.Items.Add("Six");
ddlSelctIntiger.Items.Add("Seven");
}
protected void OnddlSelctIntigerIndexChanged(object sender, EventArgs e)
{
string temp = ddlSelctIntiger.SelectedItem.Text;
Response.Write(temp);
}
and try to solve your issue.
Thanks
JmD