473,508 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AutoEventWireup problem

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 the first line in the method
"Page_load": Response.write("hello"); . But nothing showed up when
running the page.

But when I changed the AutoEventWireup to be "true" from "false", they work
well again.

Two things that I cannot understand:

1. I didnot do nothing on system setting, but why they worked well before
this morning, but they didnot work after this morning.

2.why some user controls and pages still work well even I did not change
their AutoEventWireup value from "false" to "true".

Does anybody know what happened?

Thanks

Qing

Nov 18 '05 #1
1 2445
Quentin Huo wrote:
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 the first line in the method
"Page_load": Response.write("hello"); . But nothing showed up when
running the page.

But when I changed the AutoEventWireup to be "true" from "false", they work
well again.

Two things that I cannot understand:

1. I didnot do nothing on system setting, but why they worked well before
this morning, but they didnot work after this morning.

2.why some user controls and pages still work well even I did not change
their AutoEventWireup value from "false" to "true".

Does anybody know what happened?

Thanks

Qing


Have you built the website with Visual Studio.NET? Sometimes VS removes
the/some eventhandlers. Don't know why but it's a behavior I've noticed
some times. You can't see it in the output window of VS, evereything
compiles fine and looks like it works fine.

The behavior of AutoEventWireUp in combination with methods like
Page_Load as you described are by design, no need for a explicit
eventhandler in that case.

//Rutger
Nov 18 '05 #2

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

Similar topics

2
406
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
1889
by: prem | last post by:
Hi , Any one please give me the Usage with example for AutoEventWireUp PageDirective. Regards, Prem.
0
918
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...
1
1986
by: Nitin | last post by:
I'm using the following code to verify weather the checkbox in the template column of the datalist1 is checked ' Sub Button1_Click(sender As Object, e As EventArgs) cart.text="" Dim i As Integer...
7
1544
by: Danny Tuppeny | last post by:
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! ...
5
3558
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
10221
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...
5
1507
by: Carlo Marchesoni | last post by:
I read that autoeventwireup="false" doesn't cause Page_Load to fire automatically and trying it out with a simple page this can be confirmed easily. However, I have a page with...
0
1153
by: ABCL | last post by:
Hi All I have UserControl with "AutoEventWireUp="true" Property, and I have drop this User Control on the Master Page MasterPage has: <%@ Master Language="C#" AutoEventWireup="true" ...../> ...
0
7227
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
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7054
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
7501
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...
1
5056
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...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.