I like to Monkey patch a ASPX website so that I can add stuff to the Page_Load method within a compiled assembly.
My first thought was to add a script tag containing a second Page_Load method to the ASPX file like so:
<script language="CS" runat="server">
void Page_Load(object sender, System.EventArgs e)
{
// do some stuff in addition to the original Page_Load method
}
</script>
But it looks like only the Page_Load method from the inline code will be executed and not the one from the original code-behind file (within the compiled assembly).
Is it possible to call the original method from within my inline code? Or is there any other way to add stuff that should run directly after the Page_Load method was called from within inline code without modifying the existing assembly?