.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: September 09, 2010    Points: 0   Category :ASP.Net
whenever i clik the tabpanel of tabcontainer, i should have to load the other url page. please send me the code

View Complete Post

More Related Resource Links

ASP.net Ajax TabContainer -- Printing All tabs



Can  anyone help me with this?. I want to print all the tabs in ajax tab container. The tab container has around 10 tabs. I dont want to goto each tab and print the page. Instead is there any way by which I can tweek the print.css file to print all the tabs at a single stretch?.  So that I will get all the contents of the tab in single print.  Is there any other way in which I can print all the tabs all together?.

Thanks in Advance...


Dynamic tabcontainer


I have a tabcontainer that is set up dynamically.  Everything in this work without any issues.  I add a gridview to this container and I would love to maintain the active tab during a page post back.   If I create the tabcontainer in the design time I know how to use javascript to maintain the tab selections.  But I have no clue when they are dynamic.  I tried storing the activeTabIndex in a session variable but I don't know how to capture the change of the tabs.

Can someone please help,


Issues with dynamically created TabContainer (Hide/Show TabPanel)


I have a web page that contains an UpdatePanel. In that panel, there is a TabContainer control that has 5 TabPanels, only the first one "Tab 1" will be displayed during initial page load. There is an Add button in "Tab 1", whenever it gets clicked, I will add (show) the next TabPanel (Tab 2, Tab 3, etc., all the way to Tab 5). "Tab 2" thru "Tab 5" contains a Close button that will close (hide) the current tab when clicked.

I'm doing all of these from code behind (dynamically create controls in Page_Init event and re-generate them during postback, track each TabPanel's content in a session variable, etc.), and everything seems to work just fine IF after adding several TabPanels, I remove  them in order (i.e. remove Tab 5 first, then Tab 4, Tab 3, etc.). It will NOT work whenever I try to remove a tab in the middle, then I will get all kinds of strange results.

I've attached the sample codes here for reviewing and testing. Any help is greatly appreciated.


==================== demo.aspx page ====================

<%@ Page

TabContainer in asp.net via VB

Hi,Hi All, I have created dynamic tab. And one of two tab have some result from database in text box. And one tab has submit form to send email. Once I click send email the whole opened tab's data got lost. Is there anyway, To keep all tab contents and only concentrate to the active tab where client is already iHi All,I have created dynamic tab. And one of two tab have some result from database in text box. And one tab has submit form to send email. Once I click send email the whole opened tab's data get lost.Is there anyway, To keep all tab contents and only concentrate to the active tab where client is already in?BR,

Chrome update.. Ajaxtoolkit TabContainer disappears on button click.

Hello,Yesterday (Thursday Sep 10th 2010) I was happy to have a TabContainer working fine on a simple page as im learning to use it.On the page was:1) Ajax Script manger.2) 1 command button (it would make label1.text = "hello world"3) A Ajax TabContainer with 2 tabs... 4) Label1 That was it and it was working fine in Chrom and IE Woohoo.. I go home...This morning I load it up to keep working way and doing more with it.... Chrome is my default browser, it loads and I click tab2 then tab 1 all is well.... I click Butto1 and the hole TabContainer disapears..After much dinging I find it still works in IE but that my Chrome has updated (on its own): (I notice only one ICON in Chrome in the uper right corner by the addres bar... Only the Wrench ICON, No more Page ICON.. So I check and sure enough Chrome did a push to V 6.0.472.55.. thanks for asking me Google...) Anyhow thats the difference and now TabContainer goes poof/disappears when clicking a button that refeshes the page.Any thoughts?Others having this problem?ThanksShane 

Can we do Lazy Loading using ajax toolkit TabContainer control ?

Hello,At present we are using <ajax:TabContainer> to load tabs. I have 5 user controls inside <ajax:TabPanel>.The problem is that all the data on these 5 pages gets loaded at once and increases the loading time as well as it is very hard to debug.Can we do lazy loading uisng TabContainer control? so that only the data of the current tab is loaded and when we click on the other tab then that's control data gets loaded.Kindly Advice. THANKS.

AJAX tabcontainer, User Control and Sharepoint UserProfile

Hi All, I am working on following requirement. There is AJAX control, tabcontainer which is added in a user control which inturn is loaded in a sharepoint web part. Controls added int the tabcontainer include textboxes, a drop downbox and a button.On Page load I am connecting to sharepoint logged in user profile and display the information in the tabcontainer. I have kept provision to change the values for some fields which the user can change. On click of submit button the data should get saved to the same user profile and the tabcontainer should get refreshed with the new values entered. Problem Faced: On Page load all the values get populated to the controls placed in tabcontainer. But when I do any change in the control and click on submit, the changed values are not getting displayed instead old values are retained. Please help me in handling postback event. Following is the piece of code on page load and submit button protected void Page_Load(object sender, EventArgs e)         {             using (SPSite ospSite = new SPSite("http://omistestsrv:1995"))             {                 try           

TabContainer Hiding On Postback

Hi Everyone,I have a asp.net page that contains a Ajax TabContainer control with three tabs, this is all dynamically created and added using the code-behind file.  Inside each tab I have one or more gridview controls that can cause a postback for various reasons.When a gridview control causes a postback, the entire tabcontainer gets hidden on the page and therefore nothing is displayed.  In the HTML source code I can see that the controls have been added to the page, but the tabcontainer has a style added to it (style="visibility: hidden"]. If I remove this style using the developer tools, the tabcontainer displays and all tabs, but some of the styling gets lost.Is there a specific reason why this occurs and how I can resolve this?Regards.

TabContainer + response.write


i have an interface with tabcontainer and 4 tabpanel , I put a button on tabpanel to display a message ( its very simple but doesn`t work).


Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
End Sub

But when i click i recieve this message:

"sys.webforms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modifed by calls to response.write(), response filters, Htt

TabContainer Auto Height and Width


Hi all,

How i can set auto Width and Height? it can be resize according to the data populate inside TabPanel.

Thank You

TabContainer with vertical tabs.


High I was wonderif it was possible to make a the tab panel show the tabs vertically, and if so, how?

TabContainer invisible after upgrade to 4.0


We upgraded our project to 4.0 yesterday and did a live release. Unfortunately for some reason on one of our pages the tab container does not display anymore. I've set a breakpoint at the end of code execution and the .Visible property of the container is True, but the generated HTML has a CSS tag set to make it invisible:

<div class="ajax__tab_xp" id="ctl00_PageBody_tbcTabs" style="visibility:hidden;">

If I use the IE8 development tools to remove the style property then everything displays correctly. Any ideas why the container is set to be invisible even though the code behind is setting it to visible? 

How to navigate through AJAX TabContainer Tabs using buttons


Hi Forumians,

In a web page i have 5 tabs from 1 st tab to 2 tab

i have to go by a linkbutton click not through header navigation

so i created a link button and in the button click event

i have written the code like below

protected void lnkproceceed2tab3_Click(object sender, EventArgs e)
        TabContainer1.ActiveTab = TabContainer1.Tabs[3];


its sitting in same tab i cant go to the next tab by a link button.

Kindly find a solution and tell me

can the tabcontainer tabs be made accessible - with the user tabbing along them with their keyboard?


We have some tabContainers on our site and we would like to make them accessible.

So that the user can access each tab with their keyboard.

i.e. navigate with the tab key on their keyboard instead of their mouse.

is this possible?

thanks in advance.

TabContainer cannot have children of type 'System.Web.UI.WebControls.TextBox'.


I keep receiving the following error: TabContainer cannot have children of type ...    Below is the page

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <cc1:TabContainer ID="TabContainer1" runat="server">

Can't select different tabs on AjaxToolkit's TabContainer


Hello guys...

I've been searching the net for the past 3 days looking for solutions for this... but apparently it is only happening to me... As far as I've seen (even in this video: http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-tabs-control), TabContainer/TabPanel is pretty much drag & drop. But for some so far unknown reason, I can't click on the tabs to change them, and I can't see the selected tab(there is no difference in the rendering of the tabs to show selected tab).

Is there any javascript function that I have to add to my page by default to make it work?

This is the way the tabContainer is being rendered:

As you can see, even though we know tab 1 is selected, the 3 buttons look the same. And when you try to click "Tab Two" or "Tab Three", it is as if the tabs were read-only...

Anyone has any suggestions on what can I try to do in order to fix this?? My code is as follows... The optional properties that I setted, such as Enabled="true" on the tabpanels, are the tries I've done these past 3 days to fix the p

Findcontrol inside Tabcontainer



I hope someone can help with this simple problem...

Dim imagephoto As Image = CType(TabContainer1.FindControl("imgPhoto"), Image)

I'm trying to use the above code to find an image inside a formview inside a tabcontainer inside a webform. But this isn't working for some reason. The spelling is correct, but it's not finding the control.

What am I missing?



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend