Use the following code to select which tab should be loaded inside the pageLoad() function in C#.
protected void Page_Load(object sender, EventArgs e)
{
if(firstEnterButton.clicked)
{
TabContainer1.ActiveTab = TabContainer1.Tabs[0];
}
else if(secondEnterButton.clicked)
{
TabContainer1.ActiveTab = TabContainer1.Tabs[1];
}
}
Use can use various options such as Querystring to make this work.
Like on clicking the first Enter button, the page should be reloaded using Response.Redirect() function with the path as "yourpage.aspx?page=1"
protected void enter1_Click(object sender, EventArgs e)
{
Response.Redirect("yourpage.aspx?page=1");
}
and in the PageLoad function, use the if condition as
if (Page.Request.QueryString["page"] == "1")
{
TabContainer1.ActiveTab = TabContainer1.Tabs[0];
}
and so on.. Its upto you how to use it.
Regards.,
Sriram