0
hi
in that text box leave function
you give condition
if(textbox1.text!=string.empty)
{
//code
}
else
// show message enter the data
0
ooooooouuuuupssssssssss. i comment the exception and execute it but it make me the same problem
???????
0
yes i make this code with exception
0
You are encountering the exception due to following reason:
When you are not providing any value to textbox and submitting database, it is checking the column is mandatory in your database. If you don't want to make mandatory then go to table schema and change not null property.