L Lucas Tam Oct 8, 2004 #2 What is the vb code that will reset a webform? Click to expand... 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
What is the vb code that will reset a webform? Click to expand... 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