View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:33 PM
Smutty Smutty is offline
Novice
Join Date: Jun 2007
Posts: 9
iTrader: (0)
Smutty is on a distinguished road
I think you can do a trick to produce the same result. I am not sure if the "overriding the events" itself is possible.

However what I imaging is possible is to leave your controls in the Master Page unwired. In the content page's Page_Init method, reference the control in your master page and wire its event. For example:

protected void Page_Init(object sender, EventArgs e)
{
( ( LinkButton )Master.FindControl( "MyLinkBtn" ) ).Click += new EventHandler( this.MyLinkBtn_Click);
}

Hope this helps.

__________________
Powered by Yahoo! Answers
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!