protected void Button1_Click(object sender, EventArgs e) { string CS = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString; using (SqlConnection con = new SqlConnection(CS)) { SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM logindetails WHERE([Username]='" + usertxtbox1.Text + "')", con); DataSet ds = new DataSet(); da.Fill(ds); ReportDataSource datasource = new ReportDataSource("DataSet1", ds.Tables[0]); ReportViewer1.LocalReport.DataSources.Clear(); ReportViewer1.LocalReport.DataSources.Add(datasource); ReportViewer1.LocalReport.Refresh(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)