event code run in global or masterpage class?

D

Daves

if I have a control in my aspx Page, can I set it's events to run code in
the global (or even masterpage) class? Something like
<asp:control OnInit="Global.EventCode"/>
 
B

Brock Allen

Typically the event is handled by the container. So if the container it the
page, typically the page is going to handle the events. If this is a control
that's going to be in every page, why not put it in the master and have the
master handle the event?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top