Implementing Tabs using MultiView Control : ASP.NET
Using MultiView control in ASP.NET we can achieve tabs in a web page, now in this example I am going to explain how we can create tabs using MulitView control
Create a web application and add a Table control with 1 row and 3 columns and a MultiView control with 3 views, you can refer below screen shot
Here we are adding 3 cells using table control and each cell will have a link button which acts as Tab
We need to set ActiveViewIndex property of a MultiView control to see particular tab for that initially in Page_Load we set ActiveViewIndex to 0 and on clicking every link we will call TabChange event to show the particular tab, in the below code we identify which link button is clicked and based that we will change the ActiveViewIndex to show the contents
Now we are ready with out code, just build, run and test
Hope this helps
Tags : Tab control in ASP.NET, MulitView control, Satish Kumar J
Hi Sathish,
You are doing a great job!
Hats off to you yar!
Wat i like the most in this site is you site is not cluttered with the nasty google Ads. I love that man!
Regards,
Arun Shorie SG
Thank you Arun Shorie, thanks for your appreciation.
Regards,
Satish.