Reset button code

  • Thread starter Thread starter John
  • Start date Start date
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
 
Back
Top