Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Reset Web Controls an easy way?


Message #1 by "Thomas Fuller" <tfuller@g...> on Thu, 25 Jul 2002 15:01:01
I haven't seen anything like that and it makes sense that it couldn't do
that.  I don't know how the .Net framework would store the original state
when it's already managing the state between postbacks.  I ended up actually
having to physically reset the controls to "".  Kind of annoying but it does
give me the flexibility to leave them populated while a user browses other
portions of my multipage control.

Thanks for the help,
Tom Fuller

-----Original Message-----
From: planeswalk@h... [mailto:planeswalk@h...] 
Sent: Wednesday, July 31, 2002 6:32 AM
To: ASPX_Professional
Subject: [aspx_professional] Re: Reset Web Controls an easy way?

Hi, Tom!

Maybe the <asp:button> control has the ButtonType="reset" property or 
something? I'm not really sure on this but you could check.

Regards,
Marlon


> I'm trying to create a button that will reset all of the web controls on 
a 
s> pecific panel.  Is there an easy way to do this or do I need to loop 
t> hrough each control and set them back to "".  That just seems very 
i> mpractical.  I tried using a simple HTML reset but that won't work 
after 
t> he initial postback.  I'm just wondering if anyone has found an easy 
way 
t> o do this.

> Thanks,
T> om


  Return to Index