Master page event

  • Thread starter Thread starter SimonZ
  • Start date Start date
S

SimonZ

I have button on master page.

How can I reference the button clik event from content page?

Thanks,S
 
Build an event from your matser page (it's just like a user control). Then
have the master page handle its own button event and in that event handler
raise the master's custom event. You simply have the page register for the
master's custom event. Check out the <%@ MasterType %> directive on your
ASPX to get strongly typed access so you can register for 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

Back
Top