protected void Approve(string indx) { //DataTable tbl = gvCvrg.DataSource as DataTable; //if (tbl == null) // tbl = Data.GetPendingCvrgs(ViewState["EE_Number"].ToString()); //int intIndex = Convert.ToInt32(indx); //DataRow dr = tbl.Rows[intIndex]; if (Data.PeningCoverageFamilyStatus(indx).Equals("010")) { SaveLife(null); } else { SQLStatic.Sessions.SetSessionValue(session_id, "Effective_date", ViewState["deffectiveDate"].ToString()); Data.SaveCoverage(session_id, indx); jscriptsFunctions.Misc.AlertSaved(Page); } if (!Data.HasMorePendingCvrg(ViewState["EE_Number"].ToString())) { drawEEGrid(); AutoSelect(); } //if (!Data.HasMorePendingCvrg(Request.Params["ee"])) //{ // Response.Redirect("Dependents.aspx?SkipCheck=YES&Skipcvrg=1&ee=" + Request.Params["ee"], true); //} DrawCvrgGrid(); DrawDepGrid(); }