SetParameterValue didn't work in Button1_Click

public string ConString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            this.WebReport_DFMMonthlyReport.Prepare();
        }
        

    }
    protected void WebReport_DFMMonthlyReport_StartReport(object sender, EventArgs e)
    {
        Report Freport3 = (sender as WebReport).Report;

        Freport3.Load(Server.MapPath(@"Bin\Report\report.frx"));
        Freport3.Dictionary.Connections[0].ConnectionString = ConString;
        Freport3.SetParameterValue("@from", "2014-01-01");
        Freport3.SetParameterValue("@to", "2014-01-31");
       // Freport3.Prepare();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        var Freport2 = WebReport_DFMMonthlyReport.Report;
       
        FastReport.Export.ExportBase exp = new FastReport.Export.ExportBase();
        Freport2.Load(Server.MapPath(@"Bin\Report\report.frx"));
        Freport2.Dictionary.Connections[0].ConnectionString = ConString;
        Freport2.SetParameterValue("@from", TextBox_DFXFinishDate.Text);
        Freport2.SetParameterValue("@to", TextBox_FOTime.Text);
        Freport2.Prepare();
      

    }
When the click of a button, display is not the correct information. SetParameterValue didn't work.
why?

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.