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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shubham KumarPosted Feb 23, 2016, 3:44 AM