Exemple #1
0
        protected void btnInsert_Click(object sender, EventArgs e)
        {
            MessLabel.Text = "";
            SqlAuction.InsertCommandType = SqlDataSourceCommandType.Text;
            double bidamount;

            bidtxt.Value = bidtxt.Value.Replace(".", ",");
            bidamount    = double.Parse(bidtxt.Value) * 100;
            bidbid.Value = bidamount.ToString();


            if (bidamount > double.Parse(hgstBid.Value))
            {
                hgstBid.Value = bidamount.ToString();
                SqlAuction.Insert();
                MessLabel.Text  = "Your bid is the highest for the moment...";
                hgstBider.Value = usrName;
                bidtxt.Value    = "";
            }
            else
            {
                MessLabel.Text = "Please place a higher bid!";
            }
        }
Exemple #2
0
 protected void UpdateTimer_Tick(object sender, EventArgs e)
 {
     SqlAuction.DataBind();
     AuctionList.DataBind();
 }
Exemple #3
0
 protected void Load_Auction(string pguid)
 {
     SqlAuction.SelectCommand = "SELECT * FROM [dbo].[nthing_Auction_Trans] where productGuid = '" + pguid + "'";
     SqlAuction.DataBind();
 }