protected void Page_Load(object sender, EventArgs e)
 {
     if (!checkCookie())
         Response.Redirect("Login.aspx");
     String auctionId=Request.QueryString["auctionId"].ToString();
     DatabaseHandler obj = new DatabaseHandler();
     DataSet ds = obj.GetAuctionWinnerUsername(auctionId);
     if (ds == null)
         Label1.Text = "Auction not found or currently in progress";
     else
     {
         Panel1.Visible = true;
         Label1.Text = "Auction No. " + auctionId;
         Label2.Text = ds.Tables[0].Rows[0]["WINNER_USERNAME"].ToString();
         ds = obj.GetAuctionWinnerBid(Label2.Text);
         Label4.Text = ds.Tables[0].Rows[0]["CUSTOMER_BID_AMOUNT"].ToString();
         ds = obj.GetAuctionCarInfo(auctionId);
         Label3.Text = ds.Tables[0].Rows[0]["CAR_BASE_PRICE"].ToString();
         Label6.Text = ds.Tables[0].Rows[0]["CAR_BRAND"].ToString();
         Label7.Text = ds.Tables[0].Rows[0]["CAR_MODEL_NAME"].ToString();
         Label8.Text = ds.Tables[0].Rows[0]["CAR_MODEL_NUMBER"].ToString();
         String sellerId=ds.Tables[0].Rows[0]["SELLER_ID"].ToString();
         ds=obj.GetSellerName(sellerId);
         Label9.Text = ds.Tables[0].Rows[0]["SELLER_NAME"].ToString();
     }
 }