By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,626 Members | 2,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,626 IT Pros & Developers. It's quick & easy.

Auto-generated code getting lost

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.