I just installed the AJAX Extensions and AJAX ControlToolkit. I'm trying to use the TabContainer and the TabPanel so I can have tabs on my ASP form. Here is my sample:
<ajaxToolkit:TabContainerID="TabContainer1"runat="server"ActiveTabIndex="0"CssClass="ajax__tab_xp">
<ajaxToolkit:TabPanelID="TabPanel1"runat="server"HeaderText="Tab one heading">
<ContentTemplate> Tab 1 Text
<asp:ButtonID="Button1"runat="server"Text="Button"/>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanelID="TabPanel2"runat="server"HeaderText="Tab two heading"Enabled="false">
<ContentTemplate> Tab 2 Text
<asp:ButtonID="Button2"runat="server"Text="Button"/>
<asp:CheckBoxID="CheckBox1"runat="server"/></ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
But when i go into Design view all i get is a grey 'TabContainer - TabContainer1' box. I would like to be able to view the tabs and add buttons, labels, textboxes, and pictures into each tab in design mode. Is there a way to do that or another option to look at for tabs in a web application?
We do not have extensive support for tabs in design mode. We do have awork item tracking it though. Currently you will have to customize tabs using the code view.Are there other kinds of ways to use a tabpanel? For example, writing a seperate .aspx page and display that in each tab? I found you could use IFRAME's but is that the only way to do something like that? There were concerns about using frames that some browsers may block that from working, so is there another option to display multiple .aspx pages in one web window, in a tab panel?
Are there other kinds of tabpanels for asp?
Thanks!
merickson:
Are there other kinds of ways to use a tabpanel? For example, writing a seperate .aspx page and display that in each tab?
I wrapped the desired TabPanel content in a Web User Control. The user control can be edited in both views and the TabPanel simply contains the control, like so:
<ajaxToolkit:TabPanel runat="Server" ID="urlTabPanel" HeaderText="User Control">
<ContentTemplate>
<BaBu:MyUserControl runat="server" />
</ContentTemplate>
</ajaxToolkit:TabPanel>
--
babu