I have a textbox in which a ID is stored. ID has type int in the database.
I want to compare this Textbox ID with the ID in the databse.
I tried to use:
I got an error:
NullReference Exception was handled by Usercode
I've tried all the above code but it's still giving an exception.
This is the code:
int id = Convert.ToInt32(GetID.Text);
string CommandText = "UPDATE booking_projdetails SET book_status= '" + NewStatus.Text + "' WHERE emp_bookid=' " + id;