'Reload' or 'Reset' UserControl

Hi,

I have a complex usercontrol (can be placed on 'any' page) and has a reset button.  When the user clicks 'reset' I would like to clear all existing selections - essentially reverting it back to the first time it is loaded.  Is there an easy way to do this other than specifically clearing all the webcontrols on the usercontrol? I am using vb for the code behind and using on page_Load,  If Not Page.IsPostBack Then.. to set up initial settings (I am using an xml file to dynamically create radiobuttonlists, etc.)

Thanks.
Jan
LVL 7
janmariniAsked:
Who is Participating?
 
orbulatCommented:
how about this? simply redirect to the same page :-) , but it won't be treated as post back

in the onClick method

Response.Redirect(Request.Url.AbsoluteUri)
0
 
janmariniAuthor Commented:
Perfect! And so easy - Thanks!
0
 
orbulatCommented:
u're welcome :o)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.