How do you clear controls without setting to empty string?

Discussion in 'ASP .Net Web Controls' started by Horus Alkebulan, Jan 18, 2004.

  1. Maybe I'm overthinking this, but is there a cleaner way to clear out the
    controls on a web form than just setting the text value to the empty string?

    I'm implementing a "Save and Add Another" button, and for the new record I
    need to, of course, clear out the existing data to present them a clean
    form.

    Thanks!

    Horus
    Horus Alkebulan, Jan 18, 2004
    #1
    1. Advertising

  2. Horus Alkebulan

    CMA Guest

    there is a "reset" type of button in html controls. put one in the page. u
    can add the user and finally call to the click event of the reset button in
    the page.


    "Horus Alkebulan" <> wrote in message
    news:...
    > Maybe I'm overthinking this, but is there a cleaner way to clear out the
    > controls on a web form than just setting the text value to the empty

    string?
    >
    > I'm implementing a "Save and Add Another" button, and for the new record I
    > need to, of course, clear out the existing data to present them a clean
    > form.
    >
    > Thanks!
    >
    > Horus
    >
    >
    CMA, Jan 19, 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. David

    Response.Clear() doesn't clear

    David, Jan 31, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    999
    Mark Fitzpatrick
    Jan 31, 2008
  2. Tzury Bar Yochay
    Replies:
    1
    Views:
    394
    Gabriel Genellina
    Mar 24, 2008
  3. Savvoulidis Iordanis

    Empty gridview cells and checking for empty string

    Savvoulidis Iordanis, Sep 5, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    509
    Savvoulidis Iordanis
    Sep 5, 2008
  4. InvalidLastName

    Unrecognized element 'add' after <clear></clear>

    InvalidLastName, Feb 26, 2007, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    931
    Steven Cheng[MSFT]
    Mar 6, 2007
  5. Sam Roberts
    Replies:
    10
    Views:
    170
    Sam Roberts
    Mar 20, 2005
Loading...

Share This Page