Reset button code

Discussion in 'ASP .Net' started by John, Oct 8, 2004.

  1. John

    John Guest

    Hi

    What is the vb code that will reset a webform?

    Thanks

    Regards
     
    John, Oct 8, 2004
    #1
    1. Advertisements

  2. John

    Lucas Tam Guest

    "John" <> wrote in news:O9PvFhMrEHA.3848
    @TK2MSFTNGP14.phx.gbl:

    > What is the vb code that will reset a webform?


    There is no code to reset a form...

    But if you want to load the form as if it were "Not Postback" you can go:
    reponse.redirect("Webpage").

    Otherwise... you can loop through the control collection like:

    For ctl as control in Page.Controls
    If GetType(ctl) is Gettype(Label) Then
    Ctyle(ctl, Label).text = ""
    End If

    Next

    --
    Lucas Tam ()
    Please delete "REMOVE" from the e-mail address when replying.
    http://members.ebay.com/aboutme/coolspot18/
     
    Lucas Tam, Oct 8, 2004
    #2
    1. Advertisements

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. Chris Lane
    Replies:
    4
    Views:
    11,656
    Chris Lane
    Nov 17, 2003
  2. =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=

    Fire Code behind code AND Javascript code associated to a Button Click Event

    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    21,815
    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
    Feb 11, 2004
  3. angus

    a reset button

    angus, May 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    742
    Cliff Harris
    May 19, 2004
  4. NancyASAP
    Replies:
    2
    Views:
    16,536
    parndt
    Oct 16, 2007
  5. PC Leung
    Replies:
    1
    Views:
    534
    Murray
    Jul 9, 2004
  6. Reiner Wagner

    RESET button as an image

    Reiner Wagner, Jul 6, 2005, in forum: HTML
    Replies:
    3
    Views:
    13,318
    Vladdy
    Jul 6, 2005
  7. jtl.zheng
    Replies:
    10
    Views:
    957
    JTL.zheng
    Sep 2, 2006
  8. Scott D Johnson
    Replies:
    1
    Views:
    1,382
    Scott D Johnson
    Sep 27, 2006
Loading...