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?

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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

Top