コード例 #1
0
    protected void Button7_Click(object sender, EventArgs e)
    {
        dbConnect db = new dbConnect();
        string RoomID = Session["RoomID"].ToString();
        string qry = "update Room set RoomNO='" + txtRoomNo.Text + "',roomType='" + txtRoomtype.Text + "',floor_num='" + txtfloorNo.Text + "' where RoomID='"+RoomID+"'";

        bool conf = db.insert(qry);

        if (conf == true)
        {

            LblMsg.Text = "successful";
        }
        else
        {
            LblMsg.Text = "unSuccessful";
        }
    }