Reset errormessage on CustomValidator

Discussion in 'ASP .Net' started by =?Utf-8?B?RG9ydGU=?=, May 7, 2004.

  1. Hi

    I am using a customvalidator to perform server validation of user input in webform1. When the user input has been validated, webform1 (which has the customvalidator and the user input) opens a new window (by adding a script to the web page that opens a new window by using response.write), redirects to webform2 in the new window.

    If user input is invalid, the error message of the customvalidator is displayed on webform1 and there is no redirection. When the user re-enters input, presses the button and the input is valid, a new window with webform2 is opened. But the errormessage is still present in webform1. How can I make sure that the error message is removed from webform1? I wish to avoid client side scripts, as the validation is rather complicated and is best performed on server side

    Thanks
    Dorte
    =?Utf-8?B?RG9ydGU=?=, May 7, 2004
    #1
    1. Advertising

  2. I have found the solution, so don't spend any time on this
    Thanks for looking, anyway

    Dorte
    =?Utf-8?B?RG9ydGU=?=, May 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenny

    ErrorMessage

    Kenny, Jul 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    495
    David Waz...
    Jul 6, 2003
  2. Edmilson

    Errormessage in CustomValidator

    Edmilson, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    Edmilson
    Jul 10, 2003
  3. Arjen
    Replies:
    2
    Views:
    345
    Michal A. Valasek
    Aug 2, 2003
  4. Christina N
    Replies:
    0
    Views:
    352
    Christina N
    Jun 21, 2004
  5. Phil Winstanley [Microsoft MVP ASP.NET]

    Re: IIS errormessage referrs non-existing linenumber

    Phil Winstanley [Microsoft MVP ASP.NET], Jun 21, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    328
    Christina N
    Jun 21, 2004
Loading...

Share This Page