Click here to Skip to main content
15,884,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two webpages

First page has a button on clicking which second page is called which contains rdlc report


First Page

C#
string vendors = "&Id=7&Id=35";

     protected void Page_Load(object sender, EventArgs e)
     {

     }

     protected void Button1_Click(object sender, EventArgs e)
     {
         Response.Redirect("WebForm1.aspx?"+vendors );
     }



Here Id is multiparameter value


Page Two

XML
string str = Request.QueryString["Id"];

               ReportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource
                    ("dsReport", SqlDataSource1));
               List<ReportParameter> parameters = new List<ReportParameter>();

               parameters.Add(new ReportParameter("Id", str));

               ReportViewer1.LocalReport.SetParameters(parameters);





This gives me oracle error(ORA-01722: invalid number ). Pls Help
Posted
Updated 3-Feb-15 22:22pm
v3

1 solution

An ORA-01722 error occurs when you try to convert a character string into a number, and the string cannot be converted into a number.
 
Share this answer
 
Comments
roshni gupta 4-Feb-15 6:03am    
Yeah i know the same.....but how can we pass the integer array using querystring

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