marthirial
IS-IT--Management
After deciding to use the SQLException for checkign duplicated usernames, my application would do something like:
- new member enters username
- submits form
- SQL receives data and creates a SQLException if username is already existing.
- Page redirects, according to the kind of SQLExpection to the same form and shows the error by using an asp.label
I know that I have to use a Try/Catch error handling, but I don't have the knowledge of how to write the statement or where to put this code since I am inserting the record using the "Insert Record" Server behavior in dreamweaver.
My server model is ASP.NET/VB.NET using SQL server
Thanks a lot for the input.
- new member enters username
- submits form
- SQL receives data and creates a SQLException if username is already existing.
- Page redirects, according to the kind of SQLExpection to the same form and shows the error by using an asp.label
I know that I have to use a Try/Catch error handling, but I don't have the knowledge of how to write the statement or where to put this code since I am inserting the record using the "Insert Record" Server behavior in dreamweaver.
My server model is ASP.NET/VB.NET using SQL server
Thanks a lot for the input.