If AutoEventWireUp is true, then methods for the page lifecycle like Page_Load, Page_PreRender etc. will get called automatically. Otherwise you'll need to hook up those events manually.
The default for c# projects is to have auto event wireup to true and the default for vb.net projects is to have it false (and have the handlers specify Handles Page_Load etc. at the method signature).
"If I can see further than anyone else, it is only because I am standing on the shoulders of giants."blog: www.heartysoft.com twitter: @ashic
Marked as answer by HeartattacK on Apr 20, 2012 08:47 AM
ssjGanesh
Participant
1928 Points
1352 Posts
Why Autoeventwireup attribute in web application?
Apr 13, 2012 09:43 AM|LINK
What is the Autoeventwireup attribute.
If we set Autoeventwireup="True" what will happen?
and If we set Autoeventwireup="False" what will happen?
Can u give me a real time example for that?
Mark as answer,if it helped U!
HeartattacK
All-Star
55262 Points
5917 Posts
Moderator
MVP
Re: Why Autoeventwireup attribute in web application?
Apr 13, 2012 10:42 AM|LINK
If AutoEventWireUp is true, then methods for the page lifecycle like Page_Load, Page_PreRender etc. will get called automatically. Otherwise you'll need to hook up those events manually.
The default for c# projects is to have auto event wireup to true and the default for vb.net projects is to have it false (and have the handlers specify Handles Page_Load etc. at the method signature).
blog: www.heartysoft.com
twitter: @ashic
ramiramilu
All-Star
95503 Points
14106 Posts
Re: Why Autoeventwireup attribute in web application?
Apr 13, 2012 11:26 AM|LINK
Read it from here - http://forums.asp.net/t/932513.aspx/1?What+is+AutoEventWireup+
Thanks,
JumpStart
umarii090
Member
312 Points
76 Posts
Re: Why Autoeventwireup attribute in web application?
Apr 13, 2012 12:43 PM|LINK
http://www.dotnetfunda.com/interview/exam593-what-is-the-significance-of-autoeventwireup-attribute.aspx