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

Server.Execute and Reports

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jwright
Top achievements
Rank 1
jwright asked on 04 Jul 2008, 03:55 PM
I am trying to load a report using some Ajax and Server.Execute.  I get the following error: Error executing child request for handler 'System.Web.UI.Page'.  Is this a possible scenario?  My code is listed below:

public

static string LoadReport(string report)

{

Page pageHolder = new Page();

UserControl viewer = (UserControl)pageHolder.LoadControl("~/Common/ReportViewer.ascx");

pageHolder.Controls.Add(viewer);

StringWriter output = new StringWriter();

HttpContext.Current.Server.Execute(pageHolder, output, false);

return output.ToString();

}

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 07 Jul 2008, 08:40 AM
Hello jwright,

Your approach to use Server.Execute for implementing AJAX functionality is not quite right. We recommend you to use Telerik's AJAX framework or Microsoft's ASP.NET AJAX framework instead.

Note that the ReportViewer in the current version of Telerik Reporting(Q1 2008 SP1) cannot be updated using AJAX technology. Support for AJAX updates will be available from the next release which is due at the end of July.

Regards,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
jwright
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or