I keep getting this error when I try to view a certain page with IE7. I do not get the error with Firefox 2. I have two pages that have tabs, but only receive an error on one of them. It occasionally works with no problems. If I set the first panel's visible property to false, then it works fine. The first panel contains an 2 update panels with a filtered text boxes, an update panel with a calendar extender, and an update panel with a mask edit extender and mask edit valuator. I also use framesets. Could any of this be causing the error? Does anyone know a work around?
Wednesday, March 28, 2012
Tab Container Javascript Error: Unspecified Error
Monday, March 26, 2012
Tab control & master pages
Page.FindControl(string controlId) ?
I'm not sure, but I think this works...
Agapito
Nope it does not work.
Maybe im explaining wrong. The control resides in a Default.aspx that will be the ContentPlaceholder. I want to access the control from the master pages. The Tab control resides on the Default.aspx
I also tried
//Page.FindControl(TabContainer1);//Master.FindControl(TabControl1);this.ContentPlaceHolder1.FindControl(TabControl);Given a Content Placeholder of "GCSContent" and a Tab Container of "TabContainer1", I am able to successfully find the control in the Page_Unload event of MasterPage.master using the following syntax:
this.GCSContent.FindControl("TabContainer1");how do I accomplish this............?
It tells me that the TabContainer1 does not exist in the current context
protected void MenuItem_Click(object sender, MenuEventArgs e)
{
if (this.Menu1.SelectedItem.Value.Equals("1"))
{
this.ContentPlaceHolder1.FindControl("TabContainer1");
TabContainer1.ActiveTab = TabPanel2;
}
}
What is the ID of the tabContainer?
TabContainer myTabContainer = (TabContainer) this.ContentPlaceHolder1.FindControl("whatever_ID");
Tab Control is rendering very very slow on page
Hi,
I have added a tab control with 5 tabs on the page. But after that now page is taking very very long time to load in browser.
All of the pages where I have added Tab control are loading very slow !!
Is there any way to get rid of this ?
Regards,
Naimish Dave
Same problem here. Apparently, it's because of IE's slow javascript parser.
http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=9955
Tab Control Problem
Hi
I m using Ajax Tab Control in my application it is working fine but with one problem. I have three tab pages on the tab control. Every tab page has a data grid and that cause the page to post back. The problem is when I do some post back on tab and then move to another tab and cause the page to post back the tab control select the previous tab on the current on which I am working.
Is there something that I m missing ??
http://forums.asp.net/p/1068120/1550723.aspx#1550723
hi
But the solution over there is not working for me. Any other idea/workaround??
Did you try the solution by Howeird? That worked for me.
Use updatepanels around your grids.. That should prevent full postbacks.. If I understood your problem right, that should solve it..
Saturday, March 24, 2012
Tab Panel using ContentPlaceHolder not working inside Master Page.
I just downloaded the latest version of the AJAX toolkit and have noticed that with the new version my master pages now have new errors. It seems that the tab panels cant be used in master page and using contentplaceholders. Anyone have any fixes or solutions for this. The error I get is
Error 1 'AjaxControlToolkit.TabPanel.TabPanelContainer' is inaccessible due to its protection level c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\pubsubgui\6a434f43\4362c5b0\App_Web_dl4gjyhw.0.cs 185
Hi,
You can modify the access identifier of TabPanelContainer from internal to public in the source of the AjaxControlToolKit to solve it.
This should be fixed in the next release of the Toolkit due soon. Thanks!
Has this been resolved? I downloaded the Jun 18 release but I still seem to be having this issue (first time Ive used the control toolkit, so I cant tell you if it existed for me previously).
I have a content place holder in my Master page, and Im using the Tab Container/Panel control in my content page. The content pane renders blank. If I view source on the page the style for the tab container/panel is set to visibility:hidden;display:none; I have no idea why that happens but that might be part of the issue (Ive set the Style manually in the page_load but it doesnt act like a tab control, rather i just see the tab panel header text).
-Chris
Please send along a simple, self-contained demonstration of the problem for folks to have a look at. Maybe have a peek at the Tabs sample page which also uses MasterPage/ContentPage and seems to work okay.
OK, so this is my first time using AJAX, and the first control im using, and im already getting a fatal error like this?? Am I going to have problems like this with other controls? Should i wait on using AJAX?? It doesnt seem like its quite ready to use in a professional setting, with deadlines. Thanks
Hey... In general the AJAX toolkit is great and really fleshes out more for your web page. If you go and get the latest change source... this has been fixed. Go here and download and build the latest version of the code.http://www.codeplex.com/AtlasControlToolkit/SourceControl/ListDownloadableCommits.aspx
OK, isnt there a way to just download all of the fixes? I dont know what I am looking for in that link. Maybe the June 18th entry at 1:06 by davidans "take care of code analysis issue in tabpaneldesigner" ?? Sounds like person above downloaded that with now help. And how do I know where to add this souce code?? I build it into that sample project that comes with the toolkit?? And use the DLL it creates??
Tabbed Pages using ajax...
Hi all,
How to implement Tabbed Pages using ajax...
please help me
regards,
manesh mathew
try multiview control with update panel
regards
selvan
Wednesday, March 21, 2012
TabContainer inside UpdatePanel
I went through the forum to about 15 pages back and saw this issue come up in some way or another quite a few times but never fully resolved.
Basically I have the following:
<asp:UpdatePanel ChildrenAsTriggers="true" runat="server" ID="dataEdit" UpdateMode="Always">
<ContentTemplate>
<ajaxToolkit:TabContainer ID="tabEdit" runat="server" Visible="false">
<ajaxToolkit:TabPanel runat="server" HeaderText="tab one">
<ContentTemplate> <!-- some standard controls --> </ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>
</ContentTemplate>
</asp:UpdatePanel>
Note that the TabContainer starts out with Visible="false". The idea is that this section is invisible until the user selects from a list, at which point the tabs become visible and the list becomes Enabled="false". Without the UpdatePanel encapsulating the TabContainer, everything works as desired (except for the full page refresh of course). But with the UpdatePanel, the TabContainer (while still functioning) is rendered with no styles. It appears in plain-text as:
Tab OneTab TwoTab Three
< contents >
With no borders and seemingly no way to restyle it. It is rendered correctly if the TabContainer starts out with Visible="true".
Any help would be appreciated. Thanks.
Hi,
Please note that if a server control's visible is set to false, this control won't be rendered to the output.
Subsequently, the TabContainer's initialization which is supposed to execute when the page is initially loaded isn't performed.
The work around is hide this control with javascript. For instance:
function pageLoad() { // this method is called automatically when the page is loaded on client side according to the life cycleof ajax script library
tc2 = $get("TabContainer1");
tc2.style.visibility="hidden"; // hide it with javascript
}
Hope this helps.
Does anybody have another solution to this? Because having the control rendered is not an option to me.
Hello,
Did you find a solution to this? I am having the same problem and would like to see what you have implemented.
Thanks
Add an empty (Without TABs) TabContainer somewhere on the page (but keep it Visible). It will not render any visible content to the page, but make CSS to be loaded from the beginning.
-yuriy
TabContainer Server Side Event within Master Pages
I want to fire a server side event on the tab change event and I am sure it is not working beacuse of the use of a master page. Any thoughts how to get this working proerly?
1public void TabContainerPublications_ActiveTabChanged(object sender, EventArgs e)2{3string strTest;4if (TabContainerPublications.ActiveTabIndex == 0)5 strTest ="Made It!";6}In the web form is the following:
1<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">2 <asp:ScriptManager ID="PublicationsScriptManager" runat="server">3 </asp:ScriptManager>4 <div id="publicationsheaderimage">5 </div>6 <div id="fullCol">7 <h2>8 Publications</h2>9 <ajaxToolkit:TabContainer ID="TabContainerPublications" runat="server" OnActiveTabChanged="TabContainerPublications_ActiveTabChanged">10 <ajaxToolkit:TabPanel ID="TabPanelAllPublications" HeaderText="All Publications" runat="server">11 <ContentTemplate>12 <asp:GridView runat="server" ID="GridViewAllPublications" AutoGenerateColumns="False"13 ShowHeader="False" CellSpacing="5" GridLines="None">14 <Columns>15 <asp:TemplateField>16 <ItemTemplate>17 <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Bind("articleUrl")%>' runat="server">18 <asp:Label ID="Label1" runat="server" Text='<%# Bind("articleName")%>'></asp:Label></asp:HyperLink>19 <asp:Label ID="Label2" runat="server" Text='<%# Bind("Abstract")%>'></asp:Label>20 </ItemTemplate>21 </asp:TemplateField>22 </Columns>23 </asp:GridView>24 </ContentTemplate>25 </ajaxToolkit:TabPanel>As it turns out this was not my real issue. Since I wanted to execute a server side event I had to wrap the Tabs in an Update Panel.