473,406 Members | 2,356 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,406 software developers and data experts.

Auto-generated code getting lost

When working with Visual Studio 2003 it sometimes happens
that auto-generated code gets lost.

I have an .aspx page with its parental c# codebehind page.
When creating a webform using the studio there is a section
for auto-generated code. Within this region there is a
function "InitializeComponent" that also registers all
event handlers for the form. Sometimes for no obvious
reason the body of this function gets emptied.

Any idea how i could prevent this from happening or how i
could force the Studio to revalidate this function's source
code?
Thanks in advance
Heiko Milke!
Nov 18 '05 #1
3 1824
I've had that problem in a non-web project.
It occurred sometimes when I was manually modifying the code in that
section.

As the auto-generated comments say,
it is better not to manually modify it.

Hope this helps,
F.O.R.
"Heiko Milke" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
When working with Visual Studio 2003 it sometimes happens
that auto-generated code gets lost.

I have an .aspx page with its parental c# codebehind page.
When creating a webform using the studio there is a section
for auto-generated code. Within this region there is a
function "InitializeComponent" that also registers all
event handlers for the form. Sometimes for no obvious
reason the body of this function gets emptied.

Any idea how i could prevent this from happening or how i
could force the Studio to revalidate this function's source
code?
Thanks in advance
Heiko Milke!

Nov 18 '05 #2
I didn't touch the region :)

Any other ideas?

Thanks in advance
Heiko!
-----Original Message-----
I've had that problem in a non-web project.
It occurred sometimes when I was manually modifying the code in thatsection.

As the auto-generated comments say,
it is better not to manually modify it.

Hope this helps,
F.O.R.
"Heiko Milke" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
When working with Visual Studio 2003 it sometimes happens
that auto-generated code gets lost.

I have an .aspx page with its parental c# codebehind page.
When creating a webform using the studio there is a section
for auto-generated code. Within this region there is a
function "InitializeComponent" that also registers all
event handlers for the form. Sometimes for no obvious
reason the body of this function gets emptied.

Any idea how i could prevent this from happening or how i
could force the Studio to revalidate this function's source
code?
Thanks in advance
Heiko Milke!

.

Nov 18 '05 #3
I had that.
There is a KB article on Microsoft about it.
George.

<an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
I didn't touch the region :)

Any other ideas?

Thanks in advance
Heiko!
-----Original Message-----
I've had that problem in a non-web project.
It occurred sometimes when I was manually modifying the

code in that
section.

As the auto-generated comments say,
it is better not to manually modify it.

Hope this helps,
F.O.R.
"Heiko Milke" <an*******@discussions.microsoft.com> wrote

in message
news:03****************************@phx.gbl...
When working with Visual Studio 2003 it sometimes happens
that auto-generated code gets lost.

I have an .aspx page with its parental c# codebehind page.
When creating a webform using the studio there is a section
for auto-generated code. Within this region there is a
function "InitializeComponent" that also registers all
event handlers for the form. Sometimes for no obvious
reason the body of this function gets emptied.

Any idea how i could prevent this from happening or how i
could force the Studio to revalidate this function's source
code?
Thanks in advance
Heiko Milke!

.

Nov 18 '05 #4

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

Similar topics

9
by: Alan Mackenzie | last post by:
To all those who use (X)Emacs's CC Mode to edit C, C++, Java, Objective-C, Pike, AWK or IDL: To help direct the development of CC Mode, it would be useful to find out how people use the...
20
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
2
by: VB Programmer | last post by:
I created a page which I am using to prevent the user from hitting the BACK button. I'll call it my "Auto Jump" page. When it is called it basically auto-redirects to a page specified in the...
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
7
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would...
5
by: Phil Latio | last post by:
I have 2 virtually identical tables and wish to move data between them. Basically one table is called "live_table" and the other is named "suspended_table" and the only difference is that the...
5
by: maya | last post by:
at work they decided to center divs thus: body {text-align:center} #content {width: 612px; text-align:left; margin: 0 auto 0 auto; } this works fine in IE & FF, EXCEPT in FF it doesn't work if...
9
by: Beowulf | last post by:
I was having this problem: http://groups.google.com/group/microsoft.public.sqlserver.server/msg/e36e423972323378?dmode=source with it taking an inordinate amount of time to enumerate the...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
21
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.