TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chris Leonard
NA
4
0
Events from a User Controls on a Master handled on a Content Page.
Mar 26 2008 12:52 PM
I'm trying to handle an event that is fired from a user control (on a master page) by the content page. The general layout is: A master page called Company.master, a nested master page called Department.master with a user control, EmployeeUserControl.ascx that contains a drop down called EmployeeDropDown. The content page is EmployeeDetails.aspx. I'd like the content page to handle the event raised by the EmployeeDropDown(it would display the details about the employee selected from the dropdown). I was able to get this to work when the dropdown was on the Deptartment.master page(hard coded), but I would like to factor out the dropdown. Also the delegate is UserSelectEventHandler(named: SelectOptions in the classes) and the args are UserSelectEventArgs(inherits EventArgs).
I tried making a property on Department.master that returns the UserControl and then typecasting to EmployeeUserControl, but the content page is throwing an error saying I am missing a reference or assembly.
I have source if it might help.
(edit to add more info)
Reply
Answers (
0
)
Execute a client-side VbScript code from a GridView button.
problem with fixing the size of td