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;
If you're in one of those predicaments where cls.__private attributes just aren't enough since they can easily be accessed through inst._cls__private, and you need something a little more secure, here's ...