i m creating one web application my requirements are
1)country: Default label
2)States : COMBO BOX
(when i choose the value from the box the page ll be redirect)
for example:
country : INDIA
states : list show "TN,PONDI"
when i choose pondi ll redirect into "pondi.aspx"
but my drop down box was not show the selected value(i.e combo box again showed --- select--- but i need selected "PONDI" in combo after page redirect)
my codes for combobox:
Select Country:
Select State:
in c#:
protected void ddlstate_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlstate.SelectedItem.Text == "Pondicherry")
{
Server.Transfer("Pondi.aspx?ddlstateonnextpage" + AB);
}
else if (ddlstate.SelectedItem.Text == "Tamil Nadu")
{
Server.Transfer("TN.aspx?ddlstateonnextpage" + AB);
}
}
}
how to make code?
thanks & Regards
rocky
Nhlanhla A W MkhizePosted Mar 3, 2014, 11:56 AM