clearing the input of a form when page is in an invalid state

Discussion in 'ASP .Net' started by Sunfire, Nov 6, 2007.

  1. Sunfire

    Sunfire Guest

    Hi... I have a form that i use validation controls on. I need to be able to
    clear the form when it is in an invalid state. How do you do this?
    Response.Redirect doesn't work, Control.Text="" or null doesn't work... any
    ideas?
     
    Sunfire, Nov 6, 2007
    #1
    1. Advertising

  2. Response.Redirect- you mean back to the same page? Try Server.Transfer instead.
    -- Peter
    http://www.eggheadcafe.com
    unBlog: http://petesbloggerama.blogspot.com
    BlogMetaFinder: http://www.blogmetafinder.com



    "Sunfire" wrote:

    > Hi... I have a form that i use validation controls on. I need to be able to
    > clear the form when it is in an invalid state. How do you do this?
    > Response.Redirect doesn't work, Control.Text="" or null doesn't work... any
    > ideas?
    >
    >
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Nov 6, 2007
    #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. Vinod I
    Replies:
    2
    Views:
    2,246
    Alvin Bruney [MVP]
    Mar 2, 2004
  2. =?Utf-8?B?Q2hyaXM=?=

    clearing form/page cache

    =?Utf-8?B?Q2hyaXM=?=, Feb 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,176
    =?Utf-8?B?Q2hyaXM=?=
    Feb 14, 2005
  3. Chris
    Replies:
    1
    Views:
    611
    Winista
    Jan 13, 2006
  4. Dietrich Bollmann
    Replies:
    0
    Views:
    382
    Dietrich Bollmann
    Apr 22, 2008
  5. Mateusz Loskot
    Replies:
    0
    Views:
    237
    Mateusz Loskot
    Jan 11, 2012
Loading...

Share This Page