I have a page with 2 dropdown menus and 2 datagrids.
The datagrids get populated by a database based on a dropdown menu slection.
This page links to another page which in turn links back to the original.
If the user leaves the first page and then returns back I want to keep the dropdown menus and datagrids populated.
I tried doing this with session variables but can't get the datagrids to stay populated ...
protected void btnSubmit_Click(object sender, EventArgs e)
if (this.ddlName.SelectedIndex > 0)
GridView1.Visible = true;
GridView2.Visible = false;
protected void btnSubmit_Click1(object sender, EventArgs e)
if (this.ddlLocation.SelectedIndex > 0)
GridView2.Visible = true;
GridView1.Visible = false;
protected override void Page_Load(object sender, EventArgs e)
View Complete Post