c# - Report rendering using ReportViewer web control with parameter: -


I'm using the code to submit the report below.

ASPX:

  & lt; Div & gt; & Lt; AjaxToolkit: ToolkitScriptManager id = "ToolkitScriptManager1" runat = "server" & gt; & Lt; / AjaxToolkit: ToolkitScriptManager & gt; & Lt; Rsweb: ReportViewer id = "ReportViewer1" runat = "server" width = "654px" font-name = "verdana" font-size = "8pt" WaitMessageFont-name = "Verdana" WaitMessageFont size = "14pt" & gt; & Lt; / Rsweb: ReportViewer & gt; & Lt; / Div & gt;  

codebehind:

  Protected Zero Page_Load (Object Sender, EventArgs e) {// Processing Mode Remote ReportViewer1.ProcessingMode to ReportViewer = SettingMode .Remote; ServerReports Server Report = Report Details 1 Server report; // set report server URL and report path serverReport.ReportServerUrl = new URI ("http: // localhost / ReportServer"); ServerReport.ReportPath = "/ test report / test report"; // Create RequestDateTime Report Parameter Report Parameter requestDateTime = New ReportParameter (); RequestDateTime.Name = "RequestDate"; RequestDateTime.Values.Add ("2014/07/30"); // Report ReportViewer1.ServerReport.SetParametersSet up Report Parameters (New ReportParameter [] {requestDateTime}); }  

When it is executed, it just says loading ... It seems that besides the parameters, the View report button is repeatedly clicked Report Manager The same report loads within each other. If I remove the parameter declaration from the C # code, and manually returns the parameter value during the runtime, then it is working fine. What am I missing here?

You only need to print the report on Page_Load Page.IsPostBack is .


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -