//protected void ddlProdDivision_SelectedIndexChanged(object sender, EventArgs e) //{ // try // { // ProductDivision_Id = Convert.ToInt32(ddlProdDivision.SelectedValue); // SqlParameter[] sqlParamSrh = // { // new SqlParameter("@Type", "SELECT_RATE_ACTIVITY_PRODUCT_DIVISION_WISE"), // new SqlParameter("@ProductDivision_Id", ProductDivision_Id) // }; // objCommonClass.BindDataGrid(GvRateMasterForASC, "uspRateMasterForASC", true, sqlParamSrh); // imgBtnSubmit.Visible = true; // imgBtnCancel.Visible = true; // ProductDivision_Id = Convert.ToInt32(ddlProdDivision.SelectedValue); // ViewState["DTRateDetailsDivisionWise"] = objRateMasterForASC.GetAllRateAccordingToDivision(ProductDivision_Id); // DTRateDetailsDivisionWise = (DataTable)ViewState["DTRateDetailsDivisionWise"]; // DTRateDetailsDivisionWise.Columns.Add("Rate"); // DTRateDetailsDivisionWise.Columns.Add("SC_SNo"); // DTRateDetailsDivisionWise.AcceptChanges(); // ViewState["DTRateDetailsDivisionWise"] = DTRateDetailsDivisionWise; // } // catch (Exception ex) // { // SIMSCommonClass.WriteErrorErrFile(Request.RawUrl.ToString(), ex.StackTrace.ToString() + "-->" + ex.Message.ToString()); // } //} protected void imgBtnGo_Click(object sender, EventArgs e) { try { GvRateMasterForASC.DataSource = null; GvRateMasterForASC.DataBind(); ProductDivision_Id = Convert.ToInt32(ddlProdDivision.SelectedValue); SqlParameter[] sqlParamSrh = { new SqlParameter("@Type", "SELECT_RATE_ACTIVITY_PRODUCT_DIVISION_AND_ASC_WISE"), new SqlParameter("@ProductDivision_Id", ProductDivision_Id), new SqlParameter("@ServiceContractor_Id", ddlASC.SelectedItem.Value) }; ds = objCommonClass.BindDataGrid1(GvRateMasterForASC, "uspRateMasterForASC", true, sqlParamSrh); ViewState["dsActual"] = ds; imgBtnSubmit.Visible = true; imgBtnCancel.Visible = true; ProductDivision_Id = Convert.ToInt32(ddlProdDivision.SelectedValue); //ViewState["DTRateDetailsDivisionWise"] = objRateMasterForASC.GetAllRateAccordingToDivision_And_ASC(ProductDivision_Id,Convert.ToInt32(ddlASC.SelectedItem.Value)); //DTRateDetailsDivisionWise = (DataTable)ViewState["DTRateDetailsDivisionWise"]; //DTRateDetailsDivisionWise.Columns.Add("Rate"); //DTRateDetailsDivisionWise.Columns.Add("SC_SNo"); //DTRateDetailsDivisionWise.AcceptChanges(); //ViewState["DTRateDetailsDivisionWise"] = DTRateDetailsDivisionWise; } catch (Exception ex) { SIMSCommonClass.WriteErrorErrFile(Request.RawUrl.ToString(), ex.StackTrace.ToString() + "-->" + ex.Message.ToString()); } ddlProdDivision.Enabled = false; ddlASC.Enabled = false; imgBtnSubmit.Enabled = true; }