Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ReportParameter[] allPar = new ReportParameter[3]; // create parameters array
        ReportParameter parSum = new ReportParameter("id", "195");
        ReportParameter parDiscount = new ReportParameter("date", "19");
        ReportParameter parTotal = new ReportParameter("name", "176");

        allPar[0] = parSum; //assign parameters to parameter array
        allPar[1] = parDiscount;
        allPar[2] = parTotal;

        ReportViewer1.LocalReport.SetParameters(allPar); // set parameter array
      
    }
}


What I have tried:

I have tired to make right please help me
Error:
The Report Viewer Web Control requires a System.Web.UI.ScriptManager on the web form.
Posted
Updated 1-Nov-17 1:46am
v2
Comments
Karthik_Mahalingam 1-Nov-17 23:55pm    
did you add
<asp:scriptmanager id="ScriptManager1" runat="server" >
to your page?

1 solution

just put scriptmanager on aspx page
 
Share this answer
 
Comments
Member 13494800 7-Nov-17 8:52am    
thank you its working..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900