?
Solved

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

Posted on 2012-09-12
2
Medium Priority
?
920 Views
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.
0
Comment
Question by:Easwaran Paramasivam
2 Comments
 
LVL 20

Accepted Solution

by:
Rikin Shah earned 1200 total points
ID: 38393717
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.

http://www.codeproject.com/Articles/33874/Capture-Button-s-Click-Event-of-User-Control-in-th
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 38393729
Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

862 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