Asp .Net TabContainer is useful for multi view purpose via clicking its Tab Panels.
The idea is using two TabPanels as containers for Entry form and list view. The first Tab Panel contains Entry Form and second for List View as we can see at above screen shots.
I use simple Northwind Database and Products Table to create Entry and View to this table.
Asp .Net TabContainer Basic
We must add reference to Asp .Net Ajax Control Toolkit since TabContainer Control is inside it.
- Add ToolkitScriptManager Control inside form tag
- Add TabContainer Control after ToolkitScriptManager.
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <asp:TabContainer ID="TabContainer1" runat="server" > <asp:TabPanel ID="tabpanel1" runat="server" HeaderText="Entry"> </asp:TabPanel> <asp:TabPanel ID="tabpanel2" runat="server" HeaderText="View"> </asp:TabPanel> </asp:TabContainer>
Basic TabContainer is already created with simple above Asp .Net Script. You can switch between TabPanels but these still contains nothing.