protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); RadWindow2.VisibleOnPageLoad = false; if (!IsPostBack) { //Hide Insert,Edit Delete..... rsAppointments.AllowInsert = false; rsAppointments.AllowEdit = false; rsAppointments.AllowDelete = false; // BindGoogleMap(); if (Session["usertype"] != null) { usertType = Convert.ToString(Session["usertype"]); if (usertType == Admin) { btnAddEvent.Visible = true; A4.Visible = false; // Response.Redirect("/home.aspx"); } else if (Session["loginid"] != null) { } } Session["AppType"] = "SrApp"; LoadCalendar(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { if (this.HTMLTemplate.HasValue) { ddlDesignation.DataSource = DesignationBLL.Instance.GetAllDesignation(); ddlDesignation.DataTextField = "DesignationName"; ddlDesignation.DataValueField = "ID"; ddlDesignation.DataBind(); ddlDesignation.Items.Insert(0, new ListItem("--Select--", "0")); HTMLTemplatesMaster objHTMLTemplatesMaster = HTMLTemplateBLL.Instance.GetHTMLTemplateMasterById(this.HTMLTemplate.Value); txtName.Text = objHTMLTemplatesMaster.Name; txtSubject.Text = objHTMLTemplatesMaster.Subject; txtHeader.Text = objHTMLTemplatesMaster.Header; txtBody.Text = objHTMLTemplatesMaster.Body; txtFooter.Text = objHTMLTemplatesMaster.Footer; trMasterCopy.Visible = true; } } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { FillHtmlTemplates(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { FillddlDesignation(); FillrepExams(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!Page.IsPostBack) { CheckIsAdmin(); SetControlDisplay(); LoadFilters(); SearchTasks(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { if (this.HTMLTemplate.HasValue) { ddlCategory.DataSource = CommonFunction.GetHTMLTemplateCategoryList(); ddlCategory.DataTextField = "Text"; ddlCategory.DataValueField = "Value"; ddlCategory.DataBind(); ddlCategory.Items.Insert(0, new ListItem("--Select--", "0")); //if (this.HTMLTemplateCategory.HasValue) //{ // ddlCategory.SelectedValue = Convert.ToByte(this.HTMLTemplateCategory.Value).ToString(); //} ddlDesignation.DataSource = DesignationBLL.Instance.GetAllDesignation(); ddlDesignation.DataTextField = "DesignationName"; ddlDesignation.DataValueField = "ID"; ddlDesignation.DataBind(); ddlDesignation.Items.Insert(0, new ListItem("--Select--", "0")); HTMLTemplatesMaster objHTMLTemplatesMaster = HTMLTemplateBLL.Instance.GetHTMLTemplateMasterById(this.HTMLTemplate.Value); txtName.Text = objHTMLTemplatesMaster.Name; txtSubject.Text = objHTMLTemplatesMaster.Subject; txtHeader.Content = objHTMLTemplatesMaster.Header; txtBody.Content = objHTMLTemplatesMaster.Body; txtFooter.Content = objHTMLTemplatesMaster.Footer; if (objHTMLTemplatesMaster.Category.HasValue) { ddlCategory.SelectedValue = objHTMLTemplatesMaster.Category.Value.ToString(); } trMasterCopy.Visible = true; if (this.HTMLTemplate == HTMLTemplates.Offer_Made_Attachment_Template) { tblPayRates.Visible = true; } } } if (this.HTMLTemplateType.HasValue && this.HTMLTemplateType.Value == HTMLTemplateTypes.Template) { trCategory.Visible = trSubject.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!Page.IsPostBack) { if (Request.QueryString.Count > 0 && !String.IsNullOrEmpty(Request.QueryString["returnurl"])) { this.ReturnURL = Page.ResolveClientUrl(HttpUtility.UrlDecode(Request.QueryString["returnurl"].ToString())); } LoadDropDownData(); LoadUserData(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { FillddlDesignation(); if (this.ExamID > 0) { ltrlPageHeader.Text = "Edit Aptitude Test"; DataSet dsExam = AptitudeTestBLL.Instance.GetMCQ_ExamByID(this.ExamID); if (dsExam != null && dsExam.Tables.Count > 0) { dtExam = dsExam.Tables[0]; if (dtExam.Rows.Count > 0) { txtTitle.Text = Convert.ToString(dtExam.Rows[0]["ExamTitle"]); txtDescription.Text = Convert.ToString(dtExam.Rows[0]["ExamDescription"]); txtDuration.Text = Convert.ToString(dtExam.Rows[0]["ExamDuration"]); txtPassPercentage.Text = Convert.ToString(dtExam.Rows[0]["PassPercentage"]); chkActive.Checked = Convert.ToBoolean(dtExam.Rows[0]["IsActive"]); ddlDesignation.SelectedValue = Convert.ToString(dtExam.Rows[0]["DesignationID"]); if (dsExam.Tables.Count > 1) { Questions = dsExam.Tables[1]; if (dsExam.Tables.Count > 2) { Options = dsExam.Tables[2]; } repQuestions.DataSource = Questions; repQuestions.DataBind(); } } } } else { ltrlPageHeader.Text = "Add Aptitude Test"; } } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { BindControls(); ddlStatus.SelectedValue = Convert.ToString((byte)JGConstant.InstallUserStatus.OfferMade); filterHrData(); GetActiveUsers(); GetActiveContractors(); } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { DataSet dsExam = AptitudeTestBLL.Instance.GetMCQ_ExamByID(this.ExamID); if (dsExam != null && dsExam.Tables.Count > 0) { dtExam = dsExam.Tables[0]; if (dtExam.Rows.Count > 0) { ltrlTitle.Text = Convert.ToString(dtExam.Rows[0]["ExamTitle"]); ltrlDescription.Text = Convert.ToString(dtExam.Rows[0]["ExamDescription"]); ltrlDuration.Text = Convert.ToString(dtExam.Rows[0]["ExamDuration"]); ltrlPassPercentage.Text = Convert.ToString(dtExam.Rows[0]["PassPercentage"]); imgActive.Visible = Convert.ToBoolean(dtExam.Rows[0]["IsActive"]); ltrlDesignation.Text = Convert.ToString(dtExam.Rows[0]["DesignationName"]); if (imgActive.Visible) { imgActive.Src = Page.ResolveUrl("~/img/success.png"); } if (dsExam.Tables.Count > 1) { dtQuestions = dsExam.Tables[1]; if (dsExam.Tables.Count > 2) { dtOptions = dsExam.Tables[2]; } repQuestions.DataSource = dtQuestions; repQuestions.DataBind(); } } } } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); if (!IsPostBack) { FillddlDesignation(); if (this.ExamID > 0) { ltrlPageHeader.Text = "Edit Aptitude Test"; FillMCQ_ExamDetails(); } else { ltrlPageHeader.Text = "Add Aptitude Test"; } } }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); #region -- Page Load -- if (!IsPostBack) { if (Request.QueryString != null && Request.QueryString.Count > 0) { this.DesignationID = Convert.ToInt32(Request.QueryString["DId"]); hdnUDID.Value = this.DesignationID.ToString(); this.UserID = Convert.ToInt32(Request.QueryString["UId"]); SetCarrerPathDetails(); SetLegalDisclaimer(); SetUserContactDetails(); SetAutoTaskSequence(); } } #endregion }
protected void btnNo_Click(object sender, EventArgs e) { Session.Clear(); CommonFunction.AuthenticateUser(); }
protected void Page_Load(object sender, EventArgs e) { CommonFunction.AuthenticateUser(); }