private bool Confirm() { var result = from GridViewRow msgRow in grdPrice.Rows where ((CheckBox)msgRow.FindControl("chkSelect")).Checked select grdPrice.Rows[msgRow.RowIndex]; obj = new ProductMasterInfo(); DataTable dtPrice; string res = string.Empty; if (ViewState["UploadNo"] != null) { dtPrice = obj.GetEditData("P", ViewState["UploadNo"].ToString()); foreach (GridViewRow row in result) { string refNo = (row.Cells[iTemp].FindControl("hfReferenceNo") as HiddenField).Value; DataRow[] dr = dtPrice.Select("ReferenceNo='" + refNo + "'"); dr[0]["ConfirmId"] = "Y"; dr[0]["UpdateId"] = SessionVarriables.UserIdSession; dr[0]["UpdateDate"] = DateTime.Now.ToString(); } res = obj.UpdateDataByUploadNo(dtPrice, "P", ViewState["UploadNo"].ToString()); } else { UserUtil.Message("No Data Uploaded", this.Page); } return isSaved(res); }
<system.web> <customerrors mode="Off" /> <httpruntime apprequestqueuelimit="100" executiontimeout="60000" /> </system.web>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)