How to handle a button of usercontrol click event in ASPX page?

Posted on 2012-09-12
Last Modified: 2012-09-12
I have a button in user control. I would like to handle the click event of it in ASPX page. How to achieve this? Please do help.
Question by:Easwaran Paramasivam
    LVL 19

    Accepted Solution

    Hi EaswaranP,

    You'll want to create an event in your control, that can be consumed in your aspx page.

    In the event handler for your button, which is internal to your control, you can throw your custom event.  In effect, you are bubbling up the user control button event to your page.
    LVL 16

    Author Closing Comment

    by:Easwaran Paramasivam

    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

    Join & Write a Comment

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 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

    22 Experts available now in Live!

    Get 1:1 Help Now