ASP.Net Pass Parameter with new button!
Dear Sir:
Now, i design the report in ASP.Net,
and i want to add [Button] event,
when i click [Button] ,then pass parameter to report and Prepare the result .
I don't know how to set with [StartReport] enevt!
so, how design this function?
Thank you!
Now, i design the report in ASP.Net,
and i want to add [Button] event,
when i click [Button] ,then pass parameter to report and Prepare the result .
I don't know how to set with [StartReport] enevt!
so, how design this function?
Thank you!
Comments
Dear Sir:
This function is too difficult?
You may pass parameters via http url
Response.Redirect("page2.aspx?myname=" + txtName.Text);
and handle it in the StartReport event:
string myname ="";
if (Request["myname"] != null)
myname = Request.QueryString["myname"];
WebReport.Report.SetParameterValue("myname", myname);
It's work, Thank you!