protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
     if (!IsPostBack)
     {
         PopulateCountries();
     }
 }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            master = (VidiotsTemplate)this.Master;
            string customerID = Session["UserID"].ToString();

            if (!IsPostBack)
            {
                PopulateCountries();
                GetBillingAddress(customerID);
            }
        }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
     if (!IsPostBack)
     {
         GetCategories();
     }
     else
     {
         master.masterMessage = "";
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["customerId"] = 1;
     customerID            = Session["customerId"].ToString();
     master = (VidiotsTemplate)this.Master;
     if (!IsPostBack)
     {
         if (!string.IsNullOrEmpty(customerID))
         {
             RetrieveAccount(customerID);
         }
     }
 }
Пример #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            master = (VidiotsTemplate)this.Master;
            string searchTerm = Request.QueryString["searchTerm"];

            if (!string.IsNullOrEmpty(searchTerm))
            {
                GetResults(searchTerm);
            }
            else
            {
                master.masterMessage = "No search term entered";
            }
        }
Пример #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            master = (VidiotsTemplate)this.Master;
            if (!IsPostBack)
            {
            }

            string customerID = Request.QueryString["customerID"].ToString();

            if (!string.IsNullOrEmpty(customerID))
            {
                ConfirmAccount(customerID);
            }
        }
Пример #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
     if (!IsPostBack)
     {
         string orderId = Request.QueryString["orderId"];
         if (String.IsNullOrEmpty(orderId))
         {
             master.masterMessage = "Invalid Order Number.";
         }
         else
         {
             DisplayCartItem(orderId);
         }
     }
 }
Пример #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
     if (!IsPostBack)
     {
         string from = Request.QueryString["cart"];
         if (from == "1")
         {
             if (Request.Cookies["cartID"] != null)
             {
                 string cartID = Request.Cookies["cartID"].Value;
                 DisplayCartItem(cartID);
             }
             else
             {
                 string cartID = CreateNewCart();
                 Response.Cookies["cartID"].Value   = cartID;
                 Response.Cookies["cartID"].Expires = DateTime.Now.AddHours(1);
                 DisplayCartItem(cartID);
             }
         }
         else
         {
             if (Request.Cookies["cartID"] != null)
             {
                 string cartID = Request.Cookies["cartID"].Value;
                 AddToCart(cartID);
                 DisplayCartItem(cartID);
             }
             else
             {
                 string cartID = CreateNewCart();
                 AddToCart(cartID);
                 Response.Cookies["cartID"].Value   = cartID;
                 Response.Cookies["cartID"].Expires = DateTime.Now.AddHours(1);
                 DisplayCartItem(cartID);
             }
         }
     }
 }
Пример #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
 }
Пример #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master         = (VidiotsTemplate)this.Master;
     isFromCheckout = Request.QueryString["fromCheckOut"];
 }