Quote:
Originally Posted by Pure Dope
well in .NET every time a page load.......events are fired....
like there is a Page_Init event, Page_Load, Page_PreRender, etc...
you can wire up methods to those events....
something like
Code:
override protected void OnInit()
{
this.PreRender += new EventHandler(this.Page_PreRender);
}
void Page_PreRender()
{
throw new Exception("Your Method Executed!");
}
So when the page is loading...your function will execute...when that event fires.
|
Although hooks are not exactly events, there function similarly. Script execution will reach a defined hook point, and any plugins at that hook will execute.