The code is not working as expected, it is showing both the gridviews and both the buttons. I am pasting the code
string buttonClicked = Request.QueryString["ButtonClicked"];
if(!string.IsNullOrEmpty(buttonClicked))
{
GridView1.DataBind();
GridView1.Visible = true;
Button1.Visible = true;
}
else
{
GridView1.Visible = false;
Button1.Visible = false;
}
It should show only 1 gridview and 1 button at a time and thereafter,download of the menu should occur.