473,484 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Event Handlers in InitializeComponent keep disappearing

Hi everyone,
Can someone help me in stopping .NET from removing event handler
declarations for controls on an aspx page please. This has been causing a lot
of headaches as things just mysteriously disappeared and the page suddenly
does not function.
Any help is greatly appreciated.
Calvin
Nov 19 '05 #1
2 1337
Calvin,

Setup the event in .aspx file like

<asp:datagrid ... OnPreRender="MyPreRencerHandler" ..>

Eliyahu

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Hi everyone,
Can someone help me in stopping .NET from removing event handler
declarations for controls on an aspx page please. This has been causing a lot of headaches as things just mysteriously disappeared and the page suddenly
does not function.
Any help is greatly appreciated.
Calvin

Nov 19 '05 #2
Thanks Eliyahu for your response. However, what about the:
this.Load += new System.EventHandler(this.Page_Load) and click/change events
of other webcontrols such as buttons and dropdown lists?

"Eliyahu Goldin" wrote:
Calvin,

Setup the event in .aspx file like

<asp:datagrid ... OnPreRender="MyPreRencerHandler" ..>

Eliyahu

"Calvin KD" <Ca******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Hi everyone,
Can someone help me in stopping .NET from removing event handler
declarations for controls on an aspx page please. This has been causing a

lot
of headaches as things just mysteriously disappeared and the page suddenly
does not function.
Any help is greatly appreciated.
Calvin


Nov 19 '05 #3

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

Similar topics

0
1653
by: R Reyes | last post by:
Hi. I'm trying to make some event handlers for buttons that are nested within datalists, however I keep getting errors trying to access them and a blank page shows w/o any real error message. How...
0
1090
by: Steve Lewin-Berlin | last post by:
For some reason (and I wish I could say specifically when) studio.net keeps dis-associating my event handlers with their events. In a recent frsutrating example, my (C#) page_load routine wasn't...
3
2240
by: Max | last post by:
For some reason my button control just stopped working. In debug mode I found the _Click event is just not firing. When I click submit, the page just refreshes. Any idea what's going on? -Max
1
884
by: Gawel | last post by:
If I set a method as an event handler using design view in vs.net then from time to time it disappers(unregisters) and all my buttons don't work :(. How can I prevent it ? Tahnks in advance ...
6
1610
by: Winshent | last post by:
I have read many threads which indicate that this was a problem with version 2002. Why should i be suffering this? I am using VB.NET 2003 Standard Edition... is it still a problem with 2003? ...
3
1456
by: bhavik | last post by:
hi I have problem that when I am upload my application to the client server, I am losing buttion event on some pages. on some pages button event is working fine ro some pages is not working. I...
0
2420
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
6
2096
by: Jake K | last post by:
Where is the best place to define event handlers? I need to define event handlers for a COM object referenced in my project and am doing so in the fowm load. Is this the best place?
1
3344
by: AliR \(VC++ MVP\) | last post by:
Hi Everyone, I have a few form classes that inherit from the same base class. The main reason that this is done is that some event handlers are common between these classes and I was trying to...
0
6953
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
7105
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,...
0
7144
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...
1
6813
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
7214
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
4845
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
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.