Quote:
Originally Posted by gits
it is quite difficult (i would say impossible) to use a querystring with the browsers back- or forward buttons since you don't control them and don't know when the user will click them
ok.. i will explain it..
have you checked history of browser? it stores urls with paramenters (that is querystring) this history is available in your back and fwd buttons.
when you press back button, a page (with particular url and parameters) is loaded.
here you can hide/show tables (on page_load event) by checking querystring value.
-
protected void Page_Load(object sender, EventArgs e)
-
{
-
string paramValue = Request.QueryString["case"];
-
switch (paramValue)
-
{
-
case 1: showTable1and2();
-
break;
-
case 2: showTable3and4();
-
break;
-
:
-
:
-
}
-
}
-
-
-
and on DropDownList1_SelectedIndexChanged event, you can postback page with appending querystring value or simply
- protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
-
{
-
Response.Redirect("samepage.aspx?case="+ DropDownList1.SelectedValue);
-
}