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

            if (!IsPostBack)
            {
                PopulateCountries();
                GetBillingAddress(customerID);
            }
        }
Exemple #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);
         }
     }
 }
Exemple #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";
            }
        }
        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);
            }
        }
 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);
         }
     }
 }
 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);
             }
         }
     }
 }
Exemple #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     master = (VidiotsTemplate)this.Master;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     master         = (VidiotsTemplate)this.Master;
     isFromCheckout = Request.QueryString["fromCheckOut"];
 }