Handle event from Web Custom Control on the Web Form

Posted on 2004-11-11
Last Modified: 2012-06-27

I have a Web Custom Control that has a Logout button. I would like to include this Web Custom Control on every page of my app. Now,

1) If I include all the code that's in the control on a web form everything works fine
2) If I move all the code from the web form to the Web Custom Control and include this control on the web form when I click on Logout nothing happens.

What am I missing?

Question by:netele
    LVL 25

    Expert Comment

    Please look at the following topic:

    Title: Handling User Control Events

    Best, Nauman.
    LVL 18

    Expert Comment

    There shouldn't be any problem in 2. Check out that the events are attached and getting fired properly.

    Also, why are you using Web Custom Control? you should try to use Web User Control instead.


    Author Comment

    Thanks for the replies. I am using a Web User Control... sorry, got the names confused.

    I just can't understand why it isn't working...

    LVL 18

    Accepted Solution

    Hello netele,

    double click on your SignOut button on your WebUserControl and check out that it's pointing to the correct event.

    Or paste your code of SignOut.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 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

    9 Experts available now in Live!

    Get 1:1 Help Now