Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

usercontrol events

  Asked By: Ketan    Date: Feb 04    Category: Asp.net    Views: 616
  

When a button is pressed in a usercontrol - is it also possible to have a sub
routine that handles some code for this event in the main page as well?
I have a UserControl that displays a checklist in a datalist. A button on the
usercontrol records the checked items in a datalist and stores them in an
arraylist. Depending on which page the usercontrol resides in - different code
needs to be executed. Is it possible - when the button is pressed in the
usercontrol - to have an event fired in both in the usercontrol, and on the
parent page?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Sebastien Anderson     Answered On: Feb 04

create UserControl specific event... and handle it on the page...

 
Answer #2    Answered By: Hu Chalthoum     Answered On: Feb 04
 
Didn't find what you were looking for? Find more on usercontrol events Or get search suggestion and latest updates.




Tagged: