copying Pages into new project ASP.Net 2.0

  • Thread starter Thread starter Josh
  • Start date Start date
J

Josh

ASP.Net 2.0 question.

I've copied web pages from an another project into a new project using the
"Add, Existing Item" menu options It copied over the aspx and aspx.cs files
but will not compile. It appears that the control declarations that should
be in the hidden partial class have not copied.

Now I cant get into design mode.

How do I generate the control declarations? Do I have to find and copy a
hidden partial class?

Any help appreciated, thanks
 
From conversations over the last two days, if you are using WAP(Web
Application Projects) the design code is in designer.cs. Otherwise you
cannot, as the code is generated on the fly. One option might be to run a
new instance of VS2005, and in the other on select all the controls and
paste them onto a new page in the projects you are working on.

HTH - Goofy
 
-- "Goofy said:
From conversations over the last two days, if you are using WAP(Web
Application Projects) the design code is in designer.cs. Otherwise you
cannot, as the code is generated on the fly. One option might be to run a
new instance of VS2005, and in the other on select all the controls and
paste them onto a new page in the projects you are working on.

HTH - Goofy

Thanks, but no luck.

I've tried adding a new blank page into the "new project" then cut 'n'
pasting the HTML into the new page and then switching to design view. Same
problem. The control declarations do not appear to come across.
 
Are you using the express version ?


Josh said:
Thanks, but no luck.

I've tried adding a new blank page into the "new project" then cut 'n'
pasting the HTML into the new page and then switching to design view.
Same problem. The control declarations do not appear to come across.
 
Goofy said:
Are you using the express version ?

No.

I've made some progress. The original project was started with
File/New/WebSite. Mine was started with File/new/project/WebApplication.

I restarted my project copied in the files and I can now build without
errors relating to the controls. Huzzar!

Sadly I now have a problem with the Master Page controls. Thanks for your
time.
 
Back
Top