Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Reset button code

Thread Tools

Reset button code

Posts: n/a

What is the vb code that will reset a webform?



Reply With Quote
Lucas Tam
Posts: n/a
"John" <(E-Mail Removed)> wrote in news:O9PvFhMrEHA.3848

> 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:

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


Lucas Tam ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
You will not be able to reset the access - can't reset. jc MCAD 0 12-09-2007 08:58 PM
CISCO 7XX / 761 password reset or reset to factory defaults Philipp Flesch Cisco 3 06-18-2006 07:47 PM
a reset button angus ASP .Net 2 05-19-2004 07:44 PM
Fire Code behind code AND Javascript code associated to a Button Click Event =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= ASP .Net 4 02-11-2004 07:31 AM
HTML Reset Button Doesn't work after postback with Submit button Chris Lane ASP .Net 4 11-17-2003 11:52 PM