This is a migrated thread and some comments may be shown as answers.

RadAjaxLoadingPanel

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 03 Feb 2012, 06:24 PM
Hi guys,
I have following code in aspx:

<

 

 

telerik:RadScriptManager ID="ScriptManager1" runat="server" />

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<ClientEvents OnRequestStart="onRequestStart" />

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="mainPanel">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="mainPanel" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" EnableSkinTransparency ="true" runat="server">

 

 

 

</telerik:RadAjaxLoadingPanel>

 


I have following code in c#:

protected

 

 

void Button_Click(object sender, EventArgs e)

 

{

 

 

string reqno = string.Empty;

 

 

 

string status = string.Empty;

 

 

 

string fyear = FYear.ToString();

 

 

 

SecureQueryString param = new SecureQueryString();

 

param.Add(

 

"ReqnoId", reqno);

 

param.Add(

 

"StatusId", status);

 

param.Add(

 

"Fyear", fyear);

 

 

 

string url = "~/PerSession/PRRequest/PrincipalRequest.aspx?data=" + param.ToString();

 

Response.Redirect(url);

 

}


In VS2005 it works fine.When I converted to VS2010 and try to click on button above to redirect I am gettig this error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: 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 '�'.

When I comment out this code:

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="mainPanel" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 it works fine but progress bar now does not working.
Please help me to resolve this issue.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 07 Feb 2012, 01:24 PM
Hello Vitaly,

Your code is not readable and besides - insufficient to give clear indication of what might be happening on your side. Could you paste your complete aspx and code-behind using the CODE FORMATTER tool of the ticket editor? 

Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or