Hello ,
I have a radgrid and sqldatasource
in the database i have a unique key constraint to check if username exist
When i am trying to add new record from radgrid of an existing username i get this error
Violation of UNIQUE KEY constraint 'IX_Users'. Cannot insert duplicate key in object 'dbo.Users'.
The statement has been terminated
that s because i am using a unique key constraint
how can i handle this error to display in a Validation summary for example or a label
to ask user or tell him that username exist already and must insert another valid username
I tried to use validationsettings property of rad grid but i failed please help
thanks for anyone who can solve my problem
I have a radgrid and sqldatasource
in the database i have a unique key constraint to check if username exist
When i am trying to add new record from radgrid of an existing username i get this error
Violation of UNIQUE KEY constraint 'IX_Users'. Cannot insert duplicate key in object 'dbo.Users'.
The statement has been terminated
that s because i am using a unique key constraint
how can i handle this error to display in a Validation summary for example or a label
to ask user or tell him that username exist already and must insert another valid username
I tried to use validationsettings property of rad grid but i failed please help
thanks for anyone who can solve my problem