Because MVC builds on the existing ASP.NET architecture, we haven't had time to remove some of the properties in the <%@ Page ...%> directive that do not apply. This is one of them.
You are correct, it doesn't fit the MVC model. You can ignore it, remove it, or set it to false.
Phil Haack (http://haacked.com/)
Senior Program Manager, Microsoft
foobar123
Member
8 Points
11 Posts
AutoEventWireup
Dec 13, 2007 12:51 PM|LINK
All aspx pages in the out-of-the-box MVC project have AutoEventWireup="true". I thought AutoEventWireup was a throwback to web forms.
- Must I have AutoEventWireup?
- Must AutoEventWireup be true?
- What are the consequences of setting AutoEventWireup to false?
Thank you.
jdingo
Participant
1293 Points
372 Posts
Re: AutoEventWireup
Dec 13, 2007 01:49 PM|LINK
http://forums.asp.net/p/932513/1096656.aspx
check out that link, someone had your same question -- jp
Regards -- jp
(http://www.rzrsolutions.com/rzrWeb20/BlogViewScreen.aspx)
Haacked
Contributor
6901 Points
412 Posts
Re: AutoEventWireup
Dec 13, 2007 04:41 PM|LINK
Because MVC builds on the existing ASP.NET architecture, we haven't had time to remove some of the properties in the <%@ Page ...%> directive that do not apply. This is one of them.
You are correct, it doesn't fit the MVC model. You can ignore it, remove it, or set it to false.
Senior Program Manager, Microsoft
What wouldn’t you do for a Klondike bar?