[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

'Reload' or 'Reset'  UserControl

Posted on 2006-04-26
3
Medium Priority
?
1,763 Views
Last Modified: 2008-04-01
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
0
Comment
Question by:janmarini
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
orbulat earned 2000 total points
ID: 16549283
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
 
LVL 7

Author Comment

by:janmarini
ID: 16549314
Perfect! And so easy - Thanks!
0
 
LVL 10

Expert Comment

by:orbulat
ID: 16559790
u're welcome :o)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question