Duplicate value exception
LINQ
2
Posts
2
Posters
0
Views
1
Watching
-
hi , i have a method which inserts value into a table , but if i insert a duplicate value in my primary it throws an exception actually i want to to handle this exception and from the exception type i want let the user know that duplicates are not allowed how can i predict in my code ? regards .
Tauseef A Khan MCP Dotnet framework 2.0.
-
hi , i have a method which inserts value into a table , but if i insert a duplicate value in my primary it throws an exception actually i want to to handle this exception and from the exception type i want let the user know that duplicates are not allowed how can i predict in my code ? regards .
Tauseef A Khan MCP Dotnet framework 2.0.
you can't predict...you catch.