AutoEventWireup
-
Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan
-
Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan
I don't know why you'd bother unless you were setting it to false.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I don't know why you'd bother unless you were setting it to false.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
So you are suggestion what? That I leave it there, or just take it out?
-
Hi, When I create a new web user control or master page or a normal aspx page, then there is a property AutoEventWireup that is set to true. I am using C# 2.0. What I did was to take it out where ever I can see it, and add it once in my web.config file in the pages element. Will this be sufficient for the web user control, master page and the aspx file. Or does the pages element refer to only a aspx page? Thanks Brendan
-
So you are suggestion what? That I leave it there, or just take it out?
I'd just leave it there, unless you intend to turn it off, then I'd change it to turn it off. You're not going to make a sitewide change, it's going to break a lot of methods if you do.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I'd just leave it there, unless you intend to turn it off, then I'd change it to turn it off. You're not going to make a sitewide change, it's going to break a lot of methods if you do.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Thanks Christian.