Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int itemid;

            Int32.TryParse(Request.QueryString["itemid"], out itemid);
            if ((Request.HttpMethod == "GET") && (itemid > 0))
            {
                item = db.GetItem(itemid);
                if (item == null)
                {
                    Response.StatusCode = 404; Response.End();
                }
                ItemPictureList = db.GetItemPictureList(itemid);
                Page.Title      = item.name;
                highestBid      = db.GetHighestBid(itemid);
                if (highestBid == null)
                {
                    highestBid = new Bid(0, 0, 0, 0, DateTime.Now);
                }
            }
            else
            {
                Response.StatusCode = 404;
                Response.End();
            }
        }