473,614 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "InitializeComp onent" 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 1832
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*******@disc ussions.microso ft.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 "InitializeComp onent" 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*******@disc ussions.microso ft.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 "InitializeComp onent" 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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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 "InitializeComp onent" 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
2505
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 auto-newline "minor mode" facility. If you could spare a little time, would you answer these questions, please: o Do you program with auto-newline switched on (e.g. do you get NLs inserted automatically after typing a `;' or `{')? o Did you configure...
20
2853
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
2047
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 QueryString. (We'll call the page it goes to the "destination page".) If the user hits BACK on the destination page it should goto the "Auto Jump" page which should put you right back to where you hit the button. In Page_Load of this "Auto Jump"...
5
5037
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 CurrentUICulture to what's specified in the querystring. Since I want to allow UICulture auto detecting, I add UICulture = "auto" to page directive on each page.
7
22687
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 be appreciated. Thanks, Brian
5
2480
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 primary key in the "suspended_table" is an auto incremented integer where as "live_table" primary key is just a standard integer. Here's the life-cycle: 1. Record gets entered into "suspended_table" 2. Record checked and then inserted into...
5
3259
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 I change 'auto' to 0 for left and right margin values; I have to leave those at 'auto'.. so I would like to know what exactly means 'auto' -- what value it represents exactly (and does it apply for all elements/values you might apply 'auto' to?)
9
18838
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 databases on my local SQL Server instance, so I went through all the local databases and unchecked "Auto Close" on the "Options" tab of the Database properties in Enterprise Manager. This cleared up the problem nicely. In EM or through SQL-DMO, the...
22
3058
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 like that: int main(char argc, char *argv, char *env) { try { auto Exception mainException(1); mainException.setErrNo(42);
21
6328
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
0
8142
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8589
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8287
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8443
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7114
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2573
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 we have to send another system

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.