Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Reset button code

 
 
John
Guest
Posts: n/a
 
      10-07-2004
Hi

What is the vb code that will reset a webform?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Lucas Tam
Guest
Posts: n/a
 
      10-08-2004
"John" <(E-Mail Removed)> 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 ((E-Mail Removed))
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
 
Reply With Quote
 
 
 
Reply

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



Advertisments