sitieda 0 Newbie Poster

hi expert..
i have problem in create report using ssrs..
i already create the .rdl file and setup the datasource and dataset..

the problem is..when i want to view report i dont know how to map between my webform n the datasource..

this my code now...

from the 1.aspx.cs

Response.Redirectmain.aspx?id=" + id);

to 2.aspx.cs

protected void Page_Load(object sender, EventArgs e)
        {
            string id= Request.QueryString["id"];
            DisplayReport(id);
        }

 protected void DisplayReport(string id)
        {
            ReportViewer1.ProcessingMode = ProcessingMode.Remote;
            ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver");

            ReportViewer1.ServerReport.ReportPath = "/reports/report1";
        ReportDataSource datasource = new ReportDataSource("id");
            ReportViewer1.LocalReport.DataSources.Clear();
            ReportViewer1.LocalReport.DataSources.Add(datasource);

            ReportViewer1.LocalReport.Refresh();

            ReportViewer1.Visible = true;

        }