473,804 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating TabPanel contents asynchronously

Hi folks,

I've been trying to work out how to asynchronously update the contents
of a TabPanel using an UpdatePanel and I can't for the life of me get
it to work. I've seen a couple of examples online that declare an
UpdatePanel inside a TabPanel, but I get an error when I try and do
something like the following:

<ajax:TabContai ner runat="server" ID="TabList" ActiveTabIndex= "0">
<ajax:TabPane l ID="ContentTab1 " HeaderText="Tab 1">
<ContentTemplat e>
<asp:UpdatePane l runat="server" ID="AsyncConten t1"
UpdateMode="Con ditional">
<ContentTemplat e>
<!-- Some content here -->
<asp:Button runat="server" ID="UpdateButto n"
OnClick="Update Button_Click" Text="Update" />
</ContentTemplate >
</asp:UpdatePanel >
</ContentTemplate >
</ajax:TabPanel>
</ajax:TabContain er>

The error I get is, "TabContain er cannot have children of type
'System.Web.UI. UpdatePanel'.". Looking at the code for the
TabContainer class, I can see that the AddParsedSubObj ect method
throws an HttpException if the control being parsed is not a TabPanel
or a LiteralControl. Am I missing something crucial here, or is it
simply not possible to asynchronously update the contents of a
TabPanel and the examples I have seen are in fact completely wrong?

Thanks in advance for any help that you can give me!
Jun 27 '08 #1
1 2458
Hmmm. I've just noticed that it was because I forgot to put
runat="server" in my TabPanel. Oops!

On May 1, 11:37*am, Wazzamatazz <grahamcharlesw a...@googlemail .com>
wrote:
Hi folks,

I've been trying to work out how to asynchronously update the contents
of a TabPanel using an UpdatePanel and I can't for the life of me get
it to work. *I've seen a couple of examples online that declare an
UpdatePanel inside a TabPanel, but I get an error when I try and do
something like the following:

<ajax:TabContai ner runat="server" ID="TabList" ActiveTabIndex= "0">
* * <ajax:TabPane l ID="ContentTab1 " HeaderText="Tab 1">
* * * * <ContentTemplat e>
* * * * * * <asp:UpdatePane l runat="server" ID="AsyncConten t1"
UpdateMode="Con ditional">
* * * * * * * * <ContentTemplat e>
* * * * * * * * * * <!-- Some content here -->
* * * * * * * * * * <asp:Button runat="server" ID="UpdateButto n"
OnClick="Update Button_Click" Text="Update" />
* * * * * * * * </ContentTemplate >
* * * * * * </asp:UpdatePanel >
* * * * </ContentTemplate >
* * </ajax:TabPanel>
</ajax:TabContain er>

The error I get is, "TabContain er cannot have children of type
'System.Web.UI. UpdatePanel'.". *Looking at the code for the
TabContainer class, I can see that the AddParsedSubObj ect method
throws an HttpException if the control being parsed is not a TabPanel
or a LiteralControl. *Am I missing something crucial here, or is it
simply not possible to asynchronously update the contents of a
TabPanel and the examples I have seen are in fact completely wrong?

Thanks in advance for any help that you can give me!
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2342
by: smnbss | last post by:
Hi to all I've a repeater into a TabContainer->TabPanel->ContentTemplate but nothing is showed.. anyone know why? tks in advance simone
2
19590
by: quelle | last post by:
I have a TabContainer with three TabPanels. What I'd like to do is call a javascript function (with some custom parameters) every time a tab is clicked. Here is a simplified example: AjaxControlToolkit.TabContainer myContainer = new AjaxControlToolkit.TabContainer(); AjaxControlToolkit.TabPanel myPanel1 = new AjaxControlToolkit.TabPanel(); myPanel1.OnClientClick="alert('This is tab1')"; myContainer.Controls.Add(myPanel1); ...
0
4452
by: axxon | last post by:
hi, I am having a huge problem here! the scenario is i am trying to create dynamic accordion Panes to a accordion control inside a tab panel in a content page. It works just fine in a regular webform page which does not use a master page. but if i try to add dynamic accordion panes to a accordion inside a tab panel, it stops working. but I hav tested i can use static accordion panes jsut fine. here is my code: //////////// tab...
0
1676
by: vincent.defarge | last post by:
hi, I have a page that contains a tabpanel and a button which allow to change the mode of my tabpanel. my tabpanel has 2 modes : -"all elements disabled" -"all elements enabled" The tabpanel is into a update panel but the button isn't. The problem is when I click on the button , I don't have the render of my tabpanel but I have the render of the top of my update panel
0
2990
by: fran_j_diaz | last post by:
Hi, I've got some web pages whiches are too heavy. My pages have TabPanels and I saw that it was possible to load a tabPanel when we click in instead of the page loading. I went to http://blogs.msdn.com/sburke/archive/2007/06/13/how-to-make-tab-control-panels-load-on-demand.aspx
3
2868
by: GunnarJ | last post by:
I have an Ajax TabContainer. I also have a simple javascript function that normally can update a textbox using 'document.getElementById' This works as expected when the textbox is outside the TabPanel but when I move the exact same textbox inside a TabPanel the Javascript function does not seem to be able to reference it. The error reported is 'document.getElementById is null or is not an object' Any ideas
2
2366
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm trying to add a System.Web.UI.UserControl (Not a System.Web.UI.WebControl) to an asp.net ajax tabpanel. Unfortunately it doesn't appear that this is possible. This question could get very detailed, but I'll keep it short. I have a subroutine shown below which adds a tabpanels to a tabcontainer(Tabs1) based for each object in a collection. Then for each tabpanel I try to add a usercontrol named uWebPage. But when the...
1
1421
by: ysudhakarrao | last post by:
Hi i am having two pages main.aspx and popupwindow.aspx .In main.aspx i am having tabpanel and button.popupwindow.aspx iam having listbox ie collection of webusercontrols.after click of that button on main.aspx i am gettin popwindow.now i want select webusercontrol so that it should add to tabpanel of main.aspx
1
5763
by: tutus | last post by:
Hi, I have a tabcontainer with 3 TabPanels. Hers is my reel purpose: I need to put a label on the right side of the last TabPanel' s header. This last TabPanel is the 3rd TabPanel in my TabContainer. So The Label is gonna appear still part of the TabContainer, but in different style, different from the style of the headers of my TabPanels.
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.