'Reload' or 'Reset'  UserControl

Posted on 2006-04-26
Last Modified: 2008-04-01

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.)

Question by:janmarini
    LVL 10

    Accepted Solution

    how about this? simply redirect to the same page :-) , but it won't be treated as post back

    in the onClick method

    LVL 7

    Author Comment

    Perfect! And so easy - Thanks!
    LVL 10

    Expert Comment

    u're welcome :o)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now