protected void Page_Load(object sender, EventArgs e) { if (Session["UserID"] == null) { Response.Redirect("Login.aspx"); } else { string userID = Session["userID"].ToString(); string password = Session["password"].ToString(); int roleID = Convert.ToInt16(Session["roleID"]); bool verifiedStatus = SessionVerification.GetUserVerification(userID, password); if (verifiedStatus == false) { Server.Transfer("Login.aspx"); } else { } } conn = new SqlConnection(); conn.ConnectionString = ConfigurationManager.ConnectionStrings["kmcConnectionString"].ConnectionString; if (!IsPostBack) { ddlreflectiobperiod.DataSource = downs.listbillingperiod(); ddlreflectiobperiod.DataTextField = "Text"; ddlreflectiobperiod.DataValueField = "Value"; ddlreflectiobperiod.DataBind(); ddlreflectiobperiod.Items.Insert(0, "Select Billing Period"); } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); dictionary = new Dictionary <string, List <string> >(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } Check(); try { var docId = Request.Params.Get("id"); var date = Request.Params.Get("date"); SettingAppointment(new Encryption().DecryptString(docId, SV.LoginKey), date); } catch (Exception) { } if (Session["table"] != null) { messageBox.Value = Session["description"].ToString(); DataTable table = (DataTable)Session["table"]; GridView1.Visible = true; GridView1.DataSource = table; GridView1.DataBind(); } Scedulle(); }
protected void Page_Load(object sender, EventArgs e) { pnl.Visible = false; pnlinsert.Visible = false; gvSearch.Visible = false; if (Session["UserID"] == null) { Response.Redirect("Login.aspx"); } else { string userID = Session["userID"].ToString(); string password = Session["password"].ToString(); int roleID = Convert.ToInt16(Session["roleID"]); bool verifiedStatus = SessionVerification.GetUserVerification(userID, password); if (verifiedStatus == false) { Server.Transfer("Login.aspx"); } else { } } if (!IsPostBack) { } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); bcomb.Add("Default.aspx", "Home"); BreadLiteral.Text = elements.BreadComd(bcomb); enc = new Encryption() { Key = SV.Key }; if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } var cat = Request.Params.Get("category"); var query = Request.Params.Get("q"); if (!string.IsNullOrEmpty(cat)) { ItemByCategory(cat); } else if (!string.IsNullOrEmpty(query)) { SearchedItem(query); } else { Item(); } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); Carts = new List <Cart>(); bcomb.Add("Default.aspx", "Home"); bcomb.Add("#", "Product"); BreadLiteral.Text = elements.BreadComd(bcomb); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } var add = Request.Params.Get("action"); var itemId = Request.Params.Get("id"); if (!string.IsNullOrEmpty(itemId)) { ItemInfoDisplay(itemId); } if (!string.IsNullOrEmpty(add)) { AddToCart(enc.DecryptString(itemId, SV.Key)); } if (string.IsNullOrEmpty(add) && string.IsNullOrEmpty(itemId)) { Response.Redirect("~/Shop/Default.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserID"] == null) { Response.Redirect("Login.aspx"); } else { string userID = Session["userID"].ToString(); string password = Session["password"].ToString(); int roleID = Convert.ToInt16(Session["roleID"]); bool verifiedStatus = SessionVerification.GetUserVerification(userID, password); if (verifiedStatus == false) { Server.Transfer("Login.aspx"); } else { } } btnSubmit.Visible = false; conn = new SqlConnection(); conn.ConnectionString = ConfigurationManager.ConnectionStrings["kmcConnectionString"].ConnectionString; }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserID"] == null) { Response.Redirect("Login.aspx"); } else { string userID = Session["userID"].ToString(); string password = Session["password"].ToString(); int roleID = Convert.ToInt16(Session["roleID"]); bool verifiedStatus = SessionVerification.GetUserVerification(userID, password); if (verifiedStatus == false) { Server.Transfer("Login.aspx"); } else { } } if (!IsPostBack) { ddltown.Enabled = false; ddldistrict.DataSource = downs.listZone(); ddldistrict.DataTextField = "Text"; ddldistrict.DataValueField = "Value"; ddldistrict.DataBind(); ddldistrict.Items.Insert(0, "Select Zone"); } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption(); Check(); ImagePofile(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; RegisterHandler(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); var uri = Request.Url.AbsoluteUri; var domain = uri.Replace(uri.Substring(uri.IndexOf(Request.Url.AbsolutePath)), ""); StyleScript(domain); Check(); }
protected void Page_Load(object sender, EventArgs e) { sv = new SessionVerification(); var s = new Shift(sv.ShiftFilePath); var table = s.ConvertToDataTable("shift"); GridView1.Visible = true; GridView1.DataSource = table; GridView1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Check(); Load_(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); Check(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } ChangeUsernameHandler(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.Key }; bcomb.Add("Default.aspx", "Home"); bcomb.Add("Signin.aspx", "Sign In"); BreadLiteral.Text = elements.BreadComd(bcomb); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Check(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } ChangePassHandler(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Session["attempt"] = "3"; LoginEvent(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } if (!IsPostBack) { LoadProfession(); } Check(); RegDoctor(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Check(); GridView1.DataSource = new ShiftHandler().GetTable(new List <string> { SV.Uid }, false); GridView1.DataBind(); LoadAppointments(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Check(); try { var Uid = Page.RouteData.Values["id"].ToString(); LoadData(Uid); } catch (Exception) { } }
protected void Page_Load(object sender, EventArgs e) { string userID = Session["userID"].ToString(); string password = Session["password"].ToString(); int roleID = Convert.ToInt16(Session["roleID"]); bool verifiedStatus = SessionVerification.GetUserVerification(userID, password); if (verifiedStatus == false) { Server.Transfer("Login.aspx"); } else { } }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.Key }; bcomb.Add("Default.aspx", "Home"); bcomb.Add("Shopnow.aspx", "Cart"); BreadLiteral.Text = elements.BreadComd(bcomb); var id = Request.Params.Get("delete"); var qty = Request.Params.Get("qty"); if (!string.IsNullOrEmpty(id)) { DeleteItemFromCart(id, qty); } DisplayCartContent(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); enc = new Encryption() { Key = SV.LoginKey }; Check(); if (Session["message"] != null) { MessageLiteral.Text = Session["message"].ToString(); Session["message"] = null; } try { var appId = Request.Params.Get("appid"); LoadAppointment(enc.DecryptString(appId, SV.LoginKey)); } catch (Exception) { } Denied(); }
protected void Page_Load(object sender, EventArgs e) { SV = new SessionVerification(); LoadDetails(); }