ASP.Net Pass Parameter with new button!

edited 1:40AM in FastReport .NET
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!

Comments

  • edited 1:40AM
    jain wrote: »
    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!

    Dear Sir:

    This function is too difficult?
  • edited 1:40AM
    Hello,

    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);
  • edited 1:40AM
    AlexTZ wrote: »
    Hello,

    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!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.