Hey Friends,
Now I am facing such a problem . In ASP.NET using c# developing a web form in 4 steps ,first one is Employee details , second tab file upload and last one is final submit.
My problem is that when uploading a file using fileupload control the tab automatically reset into first tab control.
Asp.net form code-----
File Upload-
<%-- 1st File Upload --%>
<%-- End of 1st File Upload --%>
Using C# Code ---
/* Add dynamically css attribute to anchor tag */
ContentPlaceHolder M1 = Page.Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
var a1 = M1.FindControl("Tab3") as HtmlAnchor;
a1.Attributes["class"] = "selected";
/* End */
please help me how to control tab index after postback..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Shubham KumarRank #621 · 3.8K reputationPosted Feb 22, 2016, 10:44 PM EST