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

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

PageRequestManagerServerErrorException on TabContainer

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

I have a CustomGridControl that we created to add custom paging. It works fine in every instance except when we put it on an AJAX TabContainer.

Then we get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'System.Object[]' of type 'System.Object[].'

We have this code in the CustomGridControl:

protected override object SaveControlState()
   return new object[] { this.LastSortExpression, this.LastSortDirection, base.SaveControlState() };

The error happens right after this method returns when rendering the grid after a databind. I tried commenting out this method, but that had not impact on the exception. Please let me know if you have any additional questions.

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

Sys.WebForms.PageRequestManagerServerErrorException: An unknown


I have written a web application that allows user to view crystal reports. When they select the report, application shows the parameters and when they enter parameters and click on OK, it processes the report and displays it on screen. My problem is, I added the AJAX Update panel with Updateprogress control. Now when users enter the parameters and click on Ok, it runs sometimes and then suddenly gives the following message:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I have triple checked my project to make sure there are no Response.Write / server.tranfer commands. What I have is a label control and it displays any error in the try catch block. Now when I have the AJAX controls, if there is an error it does not even display the error on the label. It either refreshes the screen or show the above error. I googled and could not find a proper solution for this. Only option is to remove the AJAX control. I use VS2005.

The problem is when I run the same report 20 times, 2 or 3 times I get the above error.


Any help is greatly appreciated.

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,

What is error Sys.Webforms.PageRequestManagerServerErrorException

I have a server button in an aspx page. On click of the button I am opening a new aspx page as follows:Protected Sub btnView_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnView.ClickDim script As String = "OnLoadComplete();window.open('ViewReport.aspx?id=" & requestId & "','mywindow','width=1000,height=675,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left=10,top=10');"ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "script1", script, True)       End Sub Sometimes not frequently when I click the button, I get an alert box with message as follows:Sys.Webforms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was : 500Please let me know why I am getting this error randomly and what is the solution to this.I guess there is some configuration issue as on one machine I am getting error, on other its working fine.ThanksVikas


whenever i clik the tabpanel of tabcontainer, i should have to load the other url page. please send me the code

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? 

SSRS 2008 error - Sys.WebForms.PageRequestManagerServerErrorException: status code 12029



I am executing a huge report in SSRS 2008, after some time the report doesn't renders and there is an error icon at the left bottom of the web page. When I click open it to see the details, it gives following error;

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12029.

Any help on this will be appreciated.


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

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