Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to change the url ..dropdownlist selected value...when i use response .redirect method url changes but ..dropdown list selected value is misssing.....
C#
Response.Redirect(Request.Url.AbsolutePath + "?Statename=" + ddlState.SelectedItem.Text.ToString());
Posted
Comments
[no name] 11-Mar-15 0:19am    
Are you selecting id in ur dropdownlist then change the selecteditem to selected value.
sashkhdr 11-Mar-15 1:20am    
protected void ddlState_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Redirect(Request.Url.AbsolutePath + "?Statename=" + ddlState.SelectedItem.Text.ToString());
}
[no name] 11-Mar-15 1:26am    
k,put selectedvalue then try...
protected void ddlState_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Redirect(Request.Url.AbsolutePath + "?Statename=" + ddlState.seletedvalue.tostring());
}
sashkhdr 11-Mar-15 1:31am    
ok
[no name] 11-Mar-15 1:46am    
Check ur dropdownlist value ,put a break point..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900