@Page Directives: AutoEventWireup
01 March 2012 at 00:11
Set to true in C# and false in VB by default, this directive tells ASP.NET to search all the methods on the page and wire them up to page events if they follow the Page_EventName format, as in Page_Init, or Page_Load. This has the advantage of less code to write, but really the trade off is minimal compared to the added time taken by ASP.NET to wire up the events automatically on each page request. How hard is it to wire up events?
Prev: @Page Directives: Async
Next: @Page Directives: Buffer