473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Default autoEventWireup changed to true?

Hi all,

Looks like autoEventWireup defaults to true in 2.0. Kinda silly if you ask
me, since the MS site says there's a performance penalty, and I can't
imagine it's something used very often!

Anyway, anyone know where to change this setting? I've set the "default" in
web.config to false, but new pages still have it coded into the page
directive as true, which overrides. I don't want to have to do a
search/replace before I publish the site every time, but I can't find any
templates for a new webform *anywhere* on my machine (though Windows search
is a bit cack ;))

Anyone know how I can *really* set this to false?

Thanks,

Danny Tuppeny
Nov 19 '05 #1
7 1536
Go to the folder:

<VS.Net 2005>\VC#Wizards\CShapAddWebFormWiz\Templates

Update the file WebForm1.aspx

<VS.Net 2005> is the folder where you installed Visual Studio .Net 2005.

HTH

--
Cheers,
Gaurav Vaish
http://mastergaurav.org
----------------------
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43**********************@ptn-nntp-reader01.plus.net...
: Hi all,
:
: Looks like autoEventWireup defaults to true in 2.0. Kinda silly if you ask
: me, since the MS site says there's a performance penalty, and I can't
: imagine it's something used very often!
:
: Anyway, anyone know where to change this setting? I've set the "default"
in
: web.config to false, but new pages still have it coded into the page
: directive as true, which overrides. I don't want to have to do a
: search/replace before I publish the site every time, but I can't find any
: templates for a new webform *anywhere* on my machine (though Windows
search
: is a bit cack ;))
:
: Anyone know how I can *really* set this to false?
:
: Thanks,
:
: Danny Tuppeny
:
:
Nov 19 '05 #2
"Gaurav Vaish" <g_***********************************@gmail.com > wrote in
message news:eZ**************@TK2MSFTNGP10.phx.gbl...
Go to the folder:

<VS.Net 2005>\VC#Wizards\CShapAddWebFormWiz\Templates

Update the file WebForm1.aspx

<VS.Net 2005> is the folder where you installed Visual Studio .Net
2005.


I don't have that folder :(
It's Visual Web Develop Express, and inside C:\Program Files\Microsoft
Visual Studio 8\VC# I have these folders:

CSharpProjects
Snippets
VCSPackages

None contain a templates folder. I found this folder:

C:\Program Files\Microsoft Visual Studio 8\Web\WebNewFileItems\CSharp

Which has a WebForm.aspx file in it, but it doesn't have an @Page directive
to change things on :-(

I also found this (a zip file):

C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\CSharp\ 1033\WebForm.zip

But the Webform.aspx inside contains only "<% @Page language="C#" %>"!

I'll have a poke around in those folders though - gotta be here somewhere!!
Nov 19 '05 #3
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43**********************@ptn-nntp-reader01.plus.net...
<snip>

In:

C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\CSharp\ 1033\WebForm.zip

There's a file called WebForm_cb.aspx. Also a ContentPage_cb.aspx, which is
more likely the one I'm using, so I've changed the AutoEventWireup property
in both...

No luck! :-(

grrrr
Nov 19 '05 #4
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43**********************@ptn-nntp-reader01.plus.net...
In:

C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\CSharp\ 1033\WebForm.zip

There's a file called WebForm_cb.aspx. Also a ContentPage_cb.aspx, which
is more likely the one I'm using, so I've changed the AutoEventWireup
property in both...


Right...

In the above path, changing ItemTemplates to ItemTemplatesCache has unzipped
versions of everything. I extracted the zip file into there, replacing the
"cache", and now, all is good.

Why they didn't just add autoEventWireup=true to the web.config and leave it
out of the template, I don't know (why it's even true, I don't know!).
Anyway, now, it doesn't exist in my page files, just web.config. How it
should be! :-)
Nov 19 '05 #5
: Why they didn't just add autoEventWireup=true to the web.config and leave
it
: out of the template, I don't know (why it's even true, I don't know!).

Ah! I can't say much about Express. :-(
--
Cheers,
Gaurav Vaish
http://mastergaurav.org
-----------------------
Nov 19 '05 #6
re:
Why they didn't just add autoEventWireup=true to the web.config and leave it out of the
template
Hi, Danny.

In the future, to prevent grief about default settings, always remember
to check the "web.config.comments" file in the CONFIG subdirectory
of the 2.0 framework directory.

That file has the default settings for all configurable web.config
properties and includes the relevant options for all of them.

For this case, it says that :
<pages autoEventWireup = "true"

and that it has the options [true|false]

best regards,
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net... "Danny Tuppeny" <gr****@dannytuppeny.commmmmm> wrote in message
news:43**********************@ptn-nntp-reader01.plus.net...
In:

C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VWDExpress\ItemTemplates\Web\CSharp\ 1033\WebForm.zip

There's a file called WebForm_cb.aspx. Also a ContentPage_cb.aspx, which is more likely
the one I'm using, so I've changed the AutoEventWireup property in both...


Right...

In the above path, changing ItemTemplates to ItemTemplatesCache has unzipped versions of
everything. I extracted the zip file into there, replacing the "cache", and now, all is
good.

Why they didn't just add autoEventWireup=true to the web.config and leave it out of the
template, I don't know (why it's even true, I don't know!). Anyway, now, it doesn't
exist in my page files, just web.config. How it should be! :-)

Nov 19 '05 #7
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi, Danny.

In the future, to prevent grief about default settings, always remember
to check the "web.config.comments" file in the CONFIG subdirectory
of the 2.0 framework directory.

That file has the default settings for all configurable web.config
properties and includes the relevant options for all of them.

For this case, it says that :
<pages autoEventWireup = "true"

and that it has the options [true|false]


I already set the option in web.config, but any option in the page override
it, and by default, each page contains autoEventWireup="true", so without
modifying every page (or the template, as I now have), the option in
web.config is *useless* and will never be used! :(
Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Guy Lafleur | last post by:
I have a user control that builds a treeview dynamically in the Page_Load event. Also, I have the AutoEventWireup property set to true (i.e., <%@ Control AutoEventWireup="true" %>). Then, when I...
1
by: Quentin Huo | last post by:
Hi: This morning I found something wrong in my asp.net application: some pages and user controls didn't work well. it seems their Page_load method didnot work. For example if add a statement in...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
0
by: -Karl | last post by:
Ok.. I am totally stumped on this one. My site was workign great for awhile until I needed to have a Page_load event added to it. I added it and saw that it wasn't working. After ripping apart...
2
by: Sanjay Pais | last post by:
We are using ASP.2.0 and I was wondering if any one knew how I could modify the default.aspx. What I want to do is add some new HTML to the aspx page as well as either change the code behind or...
5
by: Juan T. Llibre | last post by:
OK, guys, usually I answer questions instead of asking them, but this thing has me scratching my head. Why is the default for AutoEventWireup different for C# and VB.NET ? In VS 2005, if I...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
4
by: =?Utf-8?B?SmFwZQ==?= | last post by:
Can I refer to the controls on default.aspx from the masterpage? I have a form on the masterpage which sends information that is in a gridview in the default.aspx page.
2
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I am using VS 2008. I am working on a web site, with the code behind. Everything worked fine, but from some reason, I started to get error message in a browser while debugging the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.