TabPanel Select Active Tab On Page PostBack

Write Following Code in

protected void Page_Init(object sender, EventArgs e)

Or you can also Set as per your Requirement

if (Request.Params[“__EVENTTARGET”] != null)
string control = Request.Params[“__EVENTTARGET”];
for (int i = 0; i < TabContainer1.Tabs.Count; i++)
if (control.Contains(TabContainer1.Tabs[i].UniqueID + “$”))
TabContainer1.ActiveTabIndex = i;


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s