protected void BtnGenerateReport_Click(object sender, EventArgs e) { try { string type = RBLReport.SelectedValue; Hashtable ht = new Hashtable(); ht.Add("Type", RBLReport.SelectedValue); ht.Add("DateFrom", txtFrom.Text); ht.Add("DateTo", txtTo.Text); ht.Add("SupplierCode", ddlSupplier.SelectedValue); ht.Add("ChallanNo", txtMRRNo.Text); ht.Add("ProductGroupId", ddlItemGroup.SelectedValue); ht.Add("ProductId", ddlItemName.SelectedValue); ht.Add("MasterLC", ddlMasterLc.SelectedValue); ht.Add("B2BLCNo", ddlB2BLCNo.SelectedValue); ht.Add("PI_No", ddlPINo.SelectedValue); ht.Add("Store_Code", ddlStoreWiseMRR.SelectedValue); DataTable dt = new DataTable(); dt = rpt.GetPurchaseReportData(ht); BindReport(dt, type); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('" + ex.Message + "')", true); } }