Click here to Skip to main content
14,691,952 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am inserting values page to database.
if i do not use validation and without entering values i direct click on the insert button so it throws the error .
how do i can prevent from this error .
what i will have to use
_Asif_ 7-Jan-16 5:18am
show your code
Manas_Kumar 7-Jan-16 5:23am
Please share your relevant C# code which one is throwing error.

1 solution

Either allow null values in your DB, or (better) validate your inputs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900