copying Pages into new project ASP.Net 2.0

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
 
G

Goofy

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
 
J

Josh

-- "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.
 
G

Goofy

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.
 
J

Josh

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.
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top