Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I add an existing web project to a web site in Visual Web Developer Express (2010)?

Posted on 2012-04-01
5
Medium Priority
?
213 Views
Last Modified: 2012-08-14
I am new at asp.net development and have built a simple website in VWDE 2010. I have a co-worker who built a web project that I'd like to add to my website.

How is this done? I have added it, but I don't know how to get the master page hooked up so it has the same look and feel. Am I missing something here?

Basically, in the end, I want one person who handles the development of the web site, while another builds specialized apps that can be folded in to the website as they are completed.

Help! :) Thank you!
0
Comment
Question by:EffinGood
  • 2
  • 2
5 Comments
 
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 37794007
Right click on the solution in the Solution Explorer window and select Add -> Existing Project. Then, browse to where the other project file is located and click on it to add it.
0
 

Author Comment

by:EffinGood
ID: 37794010
Hi Dan,

I did manage to get that far. :)

How do I reference the site master file like I do in my other web site files?

MasterPageFile="~/Site.master"  does not work, it gives me a resource cannot be found error.

Thank you!
0
 
LVL 21

Expert Comment

by:masterpass
ID: 37794328
1. right click the solution and then
2. click on add >> add existing item
3. browse to site.master and click ok
0
 

Author Comment

by:EffinGood
ID: 37794389
Hi Masterpass,

I did what you suggested. Thank you. I get this error:

Content controls have to be top-level controls in a content page or a nested master page that references a master page.


I must be arranging this all wrong. I am going to ask a broader architecture type question and see if I am doing this right/wrong.
0
 
LVL 21

Accepted Solution

by:
masterpass earned 2000 total points
ID: 37794409
check these:

1. check for any unclosed or malformed tags in masterpage

2. make sure that the content placeholder name is same in master and child

3. make sure you don't have any content above the contentplaceholder in the child

4. If the masterpages are linked then make sure, the child masterpage does not have content ouside the coltentplaceholder of the parent

hope this helps!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question