473,804 Members | 3,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 938
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******** *****@TK2MSFTNG P04.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.comwro te in message
news:%2******** ********@TK2MSF TNGP03.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******** ********@TK2MSF TNGP04.phx.gbl. ..
-- "Goofy" <me@mine.comwro te in message
news:%2******** ********@TK2MSF TNGP03.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.comwro te in message
news:Or******** ******@TK2MSFTN GP04.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******** ********@TK2MSF TNGP03.phx.gbl. ..
"Goofy" <me@mine.comwro te in message
news:Or******** ******@TK2MSFTN GP04.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
1987
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 that everytime I build the solution these files will automatically be copied into the same directory? Thanks, Jacob
0
1283
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. I've tried copying on a file with one instance of VS2003 with a solution, and pasting into another instance of VS2003 with the deployed solution loaded (using the right click method). If I do this I get an
0
271
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. I've tried copying on a file with one instance of VS2003 with a solution, and pasting into another instance of VS2003 with the deployed solution loaded (using the right click method). If I do this I get an
1
1001
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 and copying it to an excel worksheet afterwards I click on each (there are many) link on the web page and doing the same process once again (selecting it copying it to excel). The links on the page are on the same column but the number of them...
0
9707
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.