Auto-generated code getting lost

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!
 
F

Frank 'Olorin' Rizzi

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top