Registration.aspx:
This is my database 'users' table:
I am getting this error message:
Can anyone tell me whats going on ?
| |||||
|
3
|
As Lloyd pointed out, parameterize your queries. E.g. (shortened for readability)
But to answer your question, use
& instead of + to concatenate a String. | |||
0
|
Just to give you a starting point
And when the value to pass to the AddWithValue method is not a string, try to convert to the correct datatype expected by the database field.
In this way you don't have to worry about parsing strings with double quotes or automatic conversion of strings to date, moreover, you don't have problems with Sql Injection attacks
|