I have a method that fires OnSelectedIndexChanged in my
code-behind:
protected void state_SelectedIndexChanged(object sender,
EventArgs e)
{
string id = state.SelectedValue.ToString();
if (state.SelectedItem.Value != "0")
{
Response.Redirect("~/statedetails.aspx?id=" + id);
}
}
When the page redirects it doesn't pass the id value? How can
I pass the id
value?
Any help is appreciated.
Thanks.