Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
1.0K+ views
I recently posted this as a support ticket, but hopefully someone knows the answer to this problem (or can replicate it):

Hello Telerik:

You and I have a problem in common - and I can't seem to fix it on my end so I'll let you know about your problem and hopefully you'll fill me in on how to fix it.

This problem can be labelled "strange" at best since it is so consistently inconsistent.

My dev machine's setup is Win Vista, VS 2005 Standard, IE 7.  I experience no problems and never receive the dreaded PageRequestManagerParserErrorException when browsing my site, your site, or any other site that uses ASP.NET Ajax.  So, of course, I thought that all was well with my work.  Apparently not so.

A customer tipped me off that she was getting the PageRequestManagerParserErrorException whenever she used a page with ASP.NET Ajax interactivity.  The specific example is www.huronperthlakers.ca which uses Ajax when you click on an article title in the "other recent articles" section.  It is important to note that the page will load fine; it's whenever there's a callback that the error fires.

So I tried this on some other computers around the office, and low and behold, most (but not all) of the machines also were getting the error.  Some machines were IE6, but most are IE7.  I spent a couple of days trying to figure out what I was doing wrong and it just didn't make sense that it would work in some cases and not in others.  So then I figured I'd try other sites and finally, some consistency came into play.

On precisely every computer that experienced the error with any of my ASP.NET Ajax sites, they also experienced the exact same error on any of the telerik.com QSF examples that used ASP.NET Ajax, not to mention the ajax.asp.net control toolkit demo site.  Conversely, the computers that didn't get the error on my sites didn't get them on yours either.

The problem for me, and for you, is the distrubingly high number of computers that are experiencing this problem around here.  The other problem is that this is so clearly an issue with ASP.NET Ajax (and NOT r.a.d.Ajax - which works fine on all the "problem" machines around here) and yet Microsoft doesn't seem to acknowledge there's a problem.  Another reason this is an issue for you guys is the fact that you are now building your controls on top of something that doesn't seem to globally work properly.

The official error is as follows (as it appears in the alert box):

Sys.WebForms.PageRequestManagerParserErrorExeption: The message received from the server could not be parsed.  Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.  Details:  Error parsing near '<!DOCTYPE html P''.

Which is interesting because I'm not doing any of the things suggested in the error (nor do I suspect that you are), and it also appears to be failing right off the get-go.  Just to be sure, Ive tested all of the following with my sites:
  • Explicity turned off server trace (which I believe is the default) in the web.config
  • Verified that response.write isn't anywhere in my code (which I already knew)
  • Verified that no response filters are being used
  • Verified that the version number for system.web.extensions is the correct RTM version in the web.config as stated in the documentation for ASP.NET Ajax
  • Verified that, for each of the "problem" machines, that the security settings for the Internet Zone where correct (medium-high for IE7, medium for IE6)
  • Turned off the enableRolesInCookies (suggested somewhere in the ASP.NET forums)

All of those items were tried both individually and together and none seemed to work.  So I know it's not something with my code since the same error appears on telerik.com and ajax.asp.net.

I'll send this now in hopes that you can start me down the path to resolution.  In the meantime I will try the following to hopefully help narrow down the issue:

  • Visit other known ASP.NET Ajax sites, such as pageflakes on the "problem" machines
  • Install other browsers on the "problem" machines to see if it's an IE-specific error

If there's anything else I can try, please let me know.  Thanks,

Shaun.

Abdul Hafiz Ghazal
Top achievements
Rank 1
 answered on 31 Jan 2010
9 answers
189 views
Hi,

I'm using the grid with my own custom skin. but I find that the dropdown filter options list has no border with transparent background. So its not readable over the text under it.

I thought I must have missed some CSS elements. So I copied and renamed all elements from another skin that referred to "filter". but it made no difference.

Any ideas?
Ish
Top achievements
Rank 1
 answered on 31 Jan 2010
4 answers
133 views
Hi,
I'm trying to create a RadPanelBar dynamically and it doesn't seem to work. This is my code.
Dim radPanelBarDistributor As New RadPanelBar  
        radPanelBarDistributor.Width = Unit.Pixel(158)  
        radPanelBarDistributor.Skin = "WebBlue" 
        radPanelBarDistributor.ExpandMode = PanelBarExpandMode.SingleExpandedItem  
        radPanelBarDistributor.PersistStateInCookie = True 
        radPanelBarDistributor.Attributes.Add("runat""server")  
 
        Dim rpi As RadPanelItem  
        Dim childItem As RadPanelItem  
        '== My Account  
        rpi = New RadPanelItem  
        rpi.Text = "My Account" 
 
        childItem = New RadPanelItem  
        childItem.Text = "My Profile" 
        childItem.NavigateUrl = "~/Manage/Profile.aspx" 
        rpi.Items.Add(childItem)  
 
        childItem = New RadPanelItem  
        childItem.Text = "AutoShip Options" 
        childItem.NavigateUrl = "~/Manage/AutoShip.aspx" 
        rpi.Items.Add(childItem)  
 
        childItem = New RadPanelItem  
        childItem.Text = "My Orders" 
        childItem.NavigateUrl = "~/Manage/MyOrders.aspx" 
        rpi.Items.Add(childItem)  
        radPanelBarDistributor.Items.Add(rpi)  
        'RadPanelBar1.Items.Add(rpi)  
        '== Only Distributors can see the extended menu  
        If UserInstance.ContactTypeID = CInt(Harmony.Common.Constants.ContactType.Distributor) Then 
            '== Manage  
            rpi = New RadPanelItem  
            rpi.Text = "Manage" 
 
            childItem = New RadPanelItem  
            childItem.Text = "Enroll a Distributor" 
            childItem.NavigateUrl = "~/Manage/Enrollment.aspx" 
            rpi.Items.Add(childItem)  
 
            childItem = New RadPanelItem  
            childItem.Text = "Enroll a Customer" 
            childItem.NavigateUrl = "~/Manage/Enrollment.aspx" 
            rpi.Items.Add(childItem)  
 
            childItem = New RadPanelItem  
            childItem.Text = "Place an Order" 
            childItem.NavigateUrl = "~/Products.aspx" 
            rpi.Items.Add(childItem)  
 
            'RadPanelBar1.Items.Add(rpi)  
            radPanelBarDistributor.Items.Add(rpi)  
 
            '== Prosperity  
            rpi = New RadPanelItem  
            rpi.Text = "Prosperity" 
 
            childItem = New RadPanelItem  
            childItem.Text = "View Trees" 
            childItem.NavigateUrl = "~/Manage/Downline.aspx" 
            rpi.Items.Add(childItem)  
 
            childItem = New RadPanelItem  
            childItem.Text = "Commissions" 
            childItem.NavigateUrl = "~/Manage/Commissions.aspx" 
            rpi.Items.Add(childItem)  
 
            childItem = New RadPanelItem  
            childItem.Text = "Prosperity Card" 
            childItem.NavigateUrl = "~/Manage/ProsperityCard.aspx" 
            rpi.Items.Add(childItem)  
 
            childItem = New RadPanelItem  
            childItem.Text = "Marketing Center" 
            childItem.NavigateUrl = "~/Manage/Marketing.aspx" 
            rpi.Items.Add(childItem)  
 
            'RadPanelBar1.Items.Add(rpi)  
            radPanelBarDistributor.Items.Add(rpi)  
 
        End If 
        pnlDistributorMenu.Controls.Add(radPanelBarDistributor) 

The menus don't open up and i get the following error: "Microsoft JScript runtime error: 'undefined' is null or not an object" with a Break, Continue, Ignore dialog box.

Is there anything I'm doing wrong?
Rob Venable
Top achievements
Rank 1
 answered on 31 Jan 2010
3 answers
154 views
Hi

Can you help me with the this challenge:

I have a search textbox in a master page (and thus on every page in the site).

What I would like to do is to have a border appear around the image submit button as soon as any text
is entered in the search box.  Can you suggest how to accomplish it client side?

Can I use the WineListTextBox_TextChanged event?

The declaration is :
<telerik:RadTextBox ID="WineListTextBox" Runat="server"   
 EmptyMessage="Wine list search" Skin="Black" Width="125px"   
 ForeColor="#A49261" style="background-color:#333333" onkeydown="return(event.keyCode!=13);">   
EmptyMessageStyle HorizontalAlign="Left" PaddingLeft="3px" /> 
</telerik:RadTextBox> 
                                  
                             
<asp:ImageButton ID="WineListButton"                                     runat="server" ImageAlign="Right"   
ImageUrl="~/images/buttons/rt-arrow.gif"                                     CausesValidation="False" /> 

and there is a button click handler in code behind.

In case you are wondering, it is because there some visitors who insist on hitting the keyboard 'enter' key to submit instead of clicking the beautiful (but small) arrow button.

Thanks!

Clive
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 30 Jan 2010
3 answers
331 views
I have BinaryImage working in a grid flawlessly. Now I want to display the binary image on another page in a asp:placeholder control. I have been unable to find any examples of RadBinaryImage being created and made to display from the codebehind. All my attempts have failed. the original images that were uploaded are jpeg.  I have been getting the missing image placeholder in IE when i attempt to add the BinaryImage control to the placeholder control collection. I'm just looking for a simple working example of this done in the codebehind. the only existing control on the page is the placeholder. If anyone can help, I would be grateful. Thank you
Thomas Frohe
Top achievements
Rank 1
 answered on 30 Jan 2010
1 answer
404 views
I'm using the AJAX.NET ModalPopUpExtender to display a customer form.

Inside that form, I have a RadComboBox.  When the pop-up is opened, only the first comboBox item is available.  Clicking on the drop-down doesn't work.

As a test, I moved the comboBox outside of the modal and it works fine.  

Any ideas?
Jaime Fuhr
Top achievements
Rank 1
 answered on 30 Jan 2010
6 answers
394 views
I am unable to access scripts from button click event.
I am getting error in viewstate of a page.

Note: My script is in RadScriptBlock.

Help me....

Thank U.
Sridhar Reddy Bommireddy
Top achievements
Rank 1
 answered on 30 Jan 2010
1 answer
199 views
I want to use the rad calendar to highlight any day that I have an event on. I dont want any text, I just want the day(s) that have events to be in a  different color or may display a small image.

Similar to this classis ASP I wrote, but obviously I want to use the rad calendar

https://www.lin-mark.us/Index.asp

Thanks for any guidance that can be provided!



Harry Cardillo
Top achievements
Rank 1
 answered on 30 Jan 2010
11 answers
235 views
hi my Dear Friends:
My Problem Is :          
   -_-The  Position Of the Filter's Dropdown Of RadGrid In IE 8 Is Wrong When The Direction =  Right To Left  in Body Tag  -_-
At First see The Picture Below -> capture.jpg   This Is For ie 8
in firefox 3 every thing is ok -> capture_2.jpg

=========================================================================================================

i have this Problem with RadComboBox Too...
so what can i do About That ?
If My Codes can help tell to to put them here....
best regards

Majid Darab
Top achievements
Rank 1
 answered on 30 Jan 2010
2 answers
76 views
Using Q3 2009 sp2

I'm using client-side databinding with "SelectMethod" calling a web service for getting and paging through data.  I return a class with the "Data" and "Count" members.  If I want to return an error message during a web service call, how can I return that message to the client.  I can add a "Message" member to my class I return, but how can I tell RadGrid about the error?  It appears that "OnAjaxRequestError" is no longer valid.  I tried throwing an exception in the web service, but RadGrid is swallowing the error.

Thanks.
Todd Tomlin
Top achievements
Rank 1
 answered on 30 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?