Error Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mangler

    Error Question

    Lets say I have a page where a user can update their profile
    information. In the DB table the username field has a unique
    constraint on it to keep username from repeating. If the user changed
    their username to something that already existed in another record in
    that table sql will throw an error. That also means that IIS will
    give an error page.

    I was wondering how I can keep the user on the same page but display
    the SQL error message somewhere on the page.

  • Evertjan.

    #2
    Re: Error Question

    Mangler wrote on 24 okt 2008 in microsoft.publi c.inetserver.as p.general:
    Lets say I have a page where a user can update their profile
    information. In the DB table the username field has a unique
    constraint on it to keep username from repeating. If the user changed
    their username to something that already existed in another record in
    that table sql will throw an error. That also means that IIS will
    give an error page.
    >
    I was wondering how I can keep the user on the same page but display
    the SQL error message somewhere on the page.
    >
    Read up about:

    On Error Resume Next
    On Error GoTo 0



    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...