protected void lbtUpdate_Click(object sender, EventArgs e) { txtUpdateGroupName.Text = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblName")).Text; txtUpdatePass.Text = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblExamPass")).Text; HID.Value = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblId")).Text; ModalPopupUpdate.Show(); }
protected void lbtUpdate_Click(object sender, EventArgs e) { hdTypeCode.Value = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblTypeCode")).Text; ddlAgentTypeUpdate.SelectedValue = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblAgenCode")).Text; ddlInsuranUpdate.SelectedValue = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblInsuranCode")).Text; txtUpdatename.Text = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblNameType")).Text; ModalPopupUpdate.Show(); }
protected void imgUpdate_Click(object sender, EventArgs e) { SpaMaster MyMasterPage = (SpaMaster)Page.Master; log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { DataTable dtAddNewPass = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "94"); if (dtAddNewPass.Rows.Count > 0) { if (ViewState["Passid"] != null) { string _BTId = ViewState["Passid"].ToString(); string state = string.Empty; SqlDataReader rd = dal.getDataReader("select Pass_Status from Pass_Master where Pass_id ='" + _BTId + "'");//change by rakesh if (rd.Read()) { state = (rd.GetValue(0).ToString().Trim()); } rd.Close(); rd.Dispose(); if (state == "Free") { ModalPopupUpdate.Show(); fillpasstype(); PopulatePageCntrls(_BTId); //HttpContext.Current.Items.Add(ContextKeys.CTX_UPDATE_URL, Request.Url.ToString()); //HttpContext.Current.Items.Add(ContextKeys.CTX_BT_ID, _BTId); //Server.Transfer("KeyDataUpdate.aspx"); } else { MyMasterPage.ShowErrorMessage("Cannot be Edit It is Reserved ..!"); //lblerror.Visible = true; //lblerror.Text = "Can't be Edit It's Reserved ..!"; } } } else { MyMasterPage.ShowErrorMessage("You Do not Have Permission ..!"); } } catch (Exception ex) { logger.Info(ex.Message); } }
protected void imgUpdate_Click(object sender, EventArgs e) { try { SpaMaster MyMasterPage = (SpaMaster)Page.Master; DataTable dtViewInventory = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "63"); if (dtViewInventory.Rows.Count > 0) { if (ViewState["Item_Id"] != null) { PopulatePageCntrls(ViewState["Item_Id"].ToString()); ModalPopupUpdate.Show(); } //int flag = 0; //foreach (GridDataItem row in RadGridCatalog.MasterTableView.Items) //{ // CheckBox chk1 = (CheckBox)row.FindControl("CheckBox1"); // int index = row.ItemIndex; // if (chk1.Checked == true) // { // flag = 1; // break; // } //} //if (flag == 1) //{ // PopulatePageCntrls(ViewState["Item_Id"].ToString()); // ModalPopupUpdate.Show(); //} //else { // ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "AlertMessage", " alert('Please select item in the check box.');", true); //} } else { MyMasterPage.ShowErrorMessage("You Do Not Have Permission..!"); } } catch (Exception ex) { } }
protected void imgUpdate_Click(object sender, EventArgs e) { try { SpaMaster MyMasterPage = (SpaMaster)Page.Master; DataTable dtViewShift = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "108"); if (dtViewShift.Rows.Count > 0) { if (ViewState["SID"] != null) { ModalPopupUpdate.Show(); FillUpdate(ViewState["SID"].ToString()); } } else { MyMasterPage.ShowErrorMessage("You Do Not Have Permission..!"); } } catch (Exception ex) { } }
protected void lbtUpdate_Click(object sender, EventArgs e) { lbldatate.Text = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lbldate")).Text; txtUpdatename.Text = ((Label)((GridViewRow)((LinkButton)sender).Parent.Parent).FindControl("lblNamedate")).Text; ModalPopupUpdate.Show(); }