473,383 Members | 1,818 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,383 software developers and data experts.

Problem with VS 2003 and Events

One of the differences with building one page style in DW and code behind in
VS 2003 is you have to declare the events (apparently).

For some reason my events will disapper.

For example:

I have the the following events in my InitializeComponents section:

this.Load += new System.EventHandler(this.Page_Load);
this.Load += new System.EventHandler(this.Page_PreRender);

and after making a couple of changes in my Properties page for my DataGrid,
I kept coming up with a blank screen (DataGrid was not filling).

After putting a break on the function that was called in the Page_Load
function, I found that it never went to the break.

When I looked in my InializeComponents section, I found this:

this.Load += new System.EventHandler(this.Page_PreRender);

My Page_Load event had disappeared. I can't accidently delete it since the
InitializeComponents section is hidden.

So what deleted it?

Thanks,

Tom
Nov 2 '07 #1
1 1112
It seems to do it ANYTIME I change the DataGrids properties in the Property
window.

When I open the property window and just select a property, it doesn't do
it. But when I actually change one of the properties and immediatly look at
the code window (even while the Property window is still open), the event
line is gone. This only seem to be the Page_Load event that it takes out.

Tom

"tshad" <tf*@dslextreme.comwrote in message
news:Om**************@TK2MSFTNGP02.phx.gbl...
One of the differences with building one page style in DW and code behind
in VS 2003 is you have to declare the events (apparently).

For some reason my events will disapper.

For example:

I have the the following events in my InitializeComponents section:

this.Load += new System.EventHandler(this.Page_Load);
this.Load += new System.EventHandler(this.Page_PreRender);

and after making a couple of changes in my Properties page for my
DataGrid, I kept coming up with a blank screen (DataGrid was not filling).

After putting a break on the function that was called in the Page_Load
function, I found that it never went to the break.

When I looked in my InializeComponents section, I found this:

this.Load += new System.EventHandler(this.Page_PreRender);

My Page_Load event had disappeared. I can't accidently delete it since
the InitializeComponents section is hidden.

So what deleted it?

Thanks,

Tom

Nov 2 '07 #2

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

Similar topics

9
by: tym | last post by:
HELP!!! I'm going round the twist with this... I have a VB6 application which is using DAO to access a database (Please - no lectures on ADO, I know what I'm doing with DAO!!) Ok, problem...
0
by: Lucas, Todd | last post by:
Hello everyone! I'm having a problem with a WebControl that I'm designing for a Menu. I've been at it for about 3 weeks now, and can't seem to get around this problem. So I'm hoping that someone...
3
by: David C | last post by:
Some screens of the web application simply do not respond to events period. Once you get to the screen, none of the buttons work. Does not respond to events period. After the first time it...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
4
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a...
5
by: Steve Moreno | last post by:
Hi all, I've got a web form that I've written code to create an array of DropDownList controls on the page depending on how many records are pulled back. The code to create the controls is...
7
by: Vlado Jasovic | last post by:
Hello, I'm using typed dataset for databinding to windows controls and I'm having some problems. I'm trying to move all business logic to datatable column_changing events and the problem that...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
6
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.