Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Looking for sample code that dynamically creates a set of bootstrap tabs in an ASP.NET page from a SQL data set.

For example, when the user selects a company, the web page displays a tab for each employee upon postback. Each tab will display a common set of data fields for user review/modification for the associated employee. This UI obviously is not feasible for large companies with thousands of employees, but is preferred for our typical data set of 2-20.

AJAX is fine to populate the set of tabs, but this set of tabs does not need to be modified via the client (jquery/javascript) after rendering.

What I have tried:

We use bootstrap heavily and are well versed in SQL data integration, but cannot figure out or find how to combine the two.
Posted
Comments
Richard Deeming 6-May-22 3:58am    
Which "flavour" of ASP.NET are you using? The solution will be different for WebForms, MVC, Razor Pages, etc.
david@davidhuey.com 6-May-22 13:33pm    
Old solution. Still using WebForms.
Richard Deeming 9-May-22 3:21am    
The ListView[^] control is probably the easiest option.

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