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");
        }
    }
Exemple #2
0
        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)
     {
     }
 }
Exemple #4
0
        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();
            }
        }
Exemple #5
0
        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");
            }
        }
Exemple #6
0
    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");
        }
    }
Exemple #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SV  = new SessionVerification();
     enc = new Encryption();
     Check();
     ImagePofile();
 }
Exemple #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SV  = new SessionVerification();
     enc = new Encryption()
     {
         Key = SV.LoginKey
     };
     RegisterHandler();
 }
Exemple #10
0
        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();
        }
Exemple #11
0
        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();
        }
Exemple #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SV  = new SessionVerification();
     enc = new Encryption()
     {
         Key = SV.LoginKey
     };
     Check();
     Load_();
 }
Exemple #13
0
 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);
 }
Exemple #15
0
 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();
 }
Exemple #16
0
 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;
     }
 }
Exemple #17
0
 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();
 }
Exemple #18
0
 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();
 }
Exemple #19
0
 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
        {
        }
    }
Exemple #21
0
        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();
        }
Exemple #22
0
 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();
 }
Exemple #23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SV = new SessionVerification();
     LoadDetails();
 }