S
simonZ
Since i have to handling the event from master page in every content page, I
created custom page class,
which handles the master page event:
public class myPage: System.Web.UI.Page
{
protected override void OnInit(EventArgs e)
{
Master.masterClick += new masterEventsEventHandler(this.getTitles);
base.OnInit(e);
}
protected virtual void getTitles (object sender, masterEventsEventArg e)
{
}
}
I get the following error:
Error 1 'System.Web.UI.MasterPage' does not contain a definition for
'masterClick'
How can I rference my master page from page base class file?
In class, I can't put MasterType page directive.
regards,Simon
created custom page class,
which handles the master page event:
public class myPage: System.Web.UI.Page
{
protected override void OnInit(EventArgs e)
{
Master.masterClick += new masterEventsEventHandler(this.getTitles);
base.OnInit(e);
}
protected virtual void getTitles (object sender, masterEventsEventArg e)
{
}
}
I get the following error:
Error 1 'System.Web.UI.MasterPage' does not contain a definition for
'masterClick'
How can I rference my master page from page base class file?
In class, I can't put MasterType page directive.
regards,Simon