private static WebStoreContext GetState(HttpContext context) {
		
			WebStoreContext info = null;

			try {
				info = (WebStoreContext) context.Items[ITEM_NAME];
			} catch (Exception e) {
				LogManager.GetLogger(typeof(WebStoreContext)).Error(e);
			}

			if (info == null) {

				info = new WebStoreContext(context);

				try {

					context.Items.Add(ITEM_NAME, info);
	
					if (context.Session != null) {	
						LogManager.GetLogger(typeof(WebStoreContext)).Info("Added Context for SessionID " + context.Session.SessionID);
					} else {
						LogManager.GetLogger(typeof(WebStoreContext)).Info("Session is null");
					}

				} catch (System.Threading.ThreadAbortException) {
				} catch (Exception e) {
					LogManager.GetLogger(typeof(WebStoreContext)).Error(e);			
				}
			}
            
			return info;
		}
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {

			this.Load += new System.EventHandler(this.Page_Load);

			StateInfo = WebStoreContext.Current;

			//If you can see this, you can't see the summary
			StateInfo.NotifyHideBasketSummary(null);
		}
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {

			this.Load += new System.EventHandler(this.Page_Load);

			StateInfo = WebStoreContext.Current;
		}
        private void initComp() {

            this.Load += new System.EventHandler(this.Page_Load);

            StateInfo = WebStoreContext.Current;
            StateInfo.OnBasketChanged += new WebStoreContext.BasketChangedHandler(BasketSummary_OnBasketChanged);

            btnEmpty.Text = GetText("empty");
            btnEmpty.Click += new EventHandler(btnEmpty_Click);
        }
        private void initComp() {

            this.Load += new System.EventHandler(this.Page_Load);

            StateInfo = WebStoreContext.Current;

            if (btnSearch != null) {
                btnSearch.Click += new EventHandler(btnSearch_Click);
            }

            if (btnBack != null) {
                btnBack.Click += new EventHandler(btnBack_Click);
            }
        }