G
Guest
heya,
i have an asp:dropdownlist with options and a button. i have some code that
should redirect the page accoding to a particular option. as my site is a
work in progress only one option should do something. my code is:
protected void GoButton_Click(object sender, EventArgs e)
{
if (LinksASPDropDownList.Visible == true)
{
if (LinksASPDropDownList.SelectedValue == " Acrobranche")
{
Page.Response.Redirect("http://www.acrobranche.com/fra/index.html", true);
}
}
}
the reason why it must be visible is because there are some other dropdown
lists with pother functions that use the same button. anyway, it wont
redirect. the page just refreshes...
can i have any advice on this matter? thanks!
i have an asp:dropdownlist with options and a button. i have some code that
should redirect the page accoding to a particular option. as my site is a
work in progress only one option should do something. my code is:
protected void GoButton_Click(object sender, EventArgs e)
{
if (LinksASPDropDownList.Visible == true)
{
if (LinksASPDropDownList.SelectedValue == " Acrobranche")
{
Page.Response.Redirect("http://www.acrobranche.com/fra/index.html", true);
}
}
}
the reason why it must be visible is because there are some other dropdown
lists with pother functions that use the same button. anyway, it wont
redirect. the page just refreshes...
can i have any advice on this matter? thanks!