protected void btnAddStatuses_Click(object sender, EventArgs e) { TreasureLandDataClassesDataContext db = new TreasureLandDataClassesDataContext(); RoomStatus status = new RoomStatus(); status.RoomStatus1 = Convert.ToChar(txtStatus.Text); status.RoomStatusDescription = txtDescription.Text; db.RoomStatus.InsertOnSubmit(status); db.SubmitChanges(); GridView1.DataBind(); }
partial void UpdateRoomStatus(RoomStatus instance);
partial void DeleteRoomStatus(RoomStatus instance);
partial void InsertRoomStatus(RoomStatus instance);