Auto-generated code getting lost

  • Thread starter Thread starter Heiko Milke
  • Start date Start date
H

Heiko Milke

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!
 
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.
 
Back
Top