How to add subprojects to an Asp.net website project

Source: Internet
Author: User

I have also thought about these functions in different folders of different projects. For example, Members will be in member, admin folders will be managed in the background, and news will be in the news folder. in this case, if vs supports generating different DLL files based on different folders, you only need to upload the corresponding DLL each time I modify different functions, and no longer need to upload the DLL of the entire website.

But the idea is beautiful, and the fact is cruel. vs does not support this function. therefore, in terms of direct function interaction and file sharing, I adopted the method of re-establishing a project, for example, separating background management and creating a new admin website, this new project is placed under the root directory of website, and then the directory after the DLL generated by file compilation is .. \ bin and delete the web. config. after compilation, you can access it, and it meets the requirements of splitting projects. but it is not perfect. There are also many settings that can be manually modified, and the two projects cannot share the same master, and usercontrol, or even images, JS, etc. If you directly use the relative path, in view mode, it will not be displayed normally. How nice is it if vs directly provides the new subitem function and can share these files.

So I found an article on GoogleArticleHttp://blogs.msdn.com/webdevtools/archive/2006/07/01/652986.aspx,Creating sub-projects in IIS with Web application projects, unfortunately the "Web application projects" add-in mentioned in this article, I downloaded, but can't install!
Although such an applicationProgramWe cannot make it, but we can modify the configuration according to his own ideas.

I found that his method is similar to my method at the beginning, but he can share the master and user control. Why can't I?
after a careful look, we found that he had created a virtual directory in the sub-project, such as http: // localhost/group ~ /Group. master, can only access the master in this project, but now you can access the master in the root directory, try usercontrol, you can also, haha, the principle of mysteries are in this virtual directory ah.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.