473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

copying Pages into new project ASP.Net 2.0

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
Dec 19 '06 #1
5 924
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
"Josh" <s@a.comwrote in message
news:OL*************@TK2MSFTNGP04.phx.gbl...
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


Dec 19 '06 #2
-- "Goofy" <me@mine.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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.
Dec 19 '06 #3
Are you using the express version ?
"Josh" <s@a.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
-- "Goofy" <me@mine.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 19 '06 #4
"Goofy" <me@mine.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
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.
Dec 19 '06 #5
What problem do you have with master page controls ?
"Josh" <s@a.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Goofy" <me@mine.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
>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.

Dec 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jacob | last post by:
Really more of a VS.NET question than a C# question.... I have a couple files in my solution that I would like copied to the compile directory when the solution is built. How do I set it up so...
0
by: postings | last post by:
Hi I'm a little confused. I've deployed my ASP.NET project by using the "copy project" feature of VS2003. Works fine. I'm stuck however in copying individual files to the deployed solution. ...
0
by: postings | last post by:
Hi I'm a little confused. I've deployed my ASP.NET project by using the "copy project" feature of VS2003. Works fine. I'm stuck however in copying individual files to the deployed solution. ...
1
by: Hakan | last post by:
I am regularly downloading an asp web page and what I want to do is to do it automatically The web page consists of one main page and many linked pages to it. Firstly I am selecting the whole page...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.