Click here to Skip to main content
15,885,630 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to add tab's to a web application by using script in asp.NET. How?
Posted

If you want to work with a Postback, just add n RadioButtons and Build n ASCX Controls and load them in the RadioButtonClick event.
if you want to work without a Postback, u can use javascript to load all Tabs at once and just set the Visible Style or use AJAX to Load the Controls afterwards.
There are Complete Solution for this, i.e. the jQuery UI or the AJAX Toolkit.
Here are the Links:
http://jqueryui.com/demos/tabs/[^]
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx[^]
 
Share this answer
 
To achieve your requirement there are two different approaches.

1) Use ajax TabPanel within ajax TabContainer..For more detail Click on below link
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx[^]

2) Use Multiview contol of asp.net with menu...Whenever user select any menu item chage Active View...Its a server side so each time you select menu item entire page is post back so 1 is better solution compare to this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900