How to add subprojects to a asp.net Web site project _ Practical Tips
Source: Internet
Author: User
It has also been thought before that these functions are based on different items in different folders, such as members of the club in member, backstage management will be in the Admin folder, the News folder. If the VS support builds different DLLs by different folders, Then every time I modify different functions of different files as long as the corresponding DLL upload can be, no longer need to upload the entire website DLL.
But the idea is good, the truth is brutal. VS does not support such a feature. Therefore, in the function of direct interaction and file sharing, I have taken a projects approach, such as stripping out the background management, and creating a new admin website, The new projects is placed in the root directory of the website, and then the directory after the file compilation build DLL is. \ bin and delete the web.config in the project. After compiling the access, hehe, really can access, and reached the requirements of the split project. It's not perfect, there are many settings that you can manually modify, and you can't share the same master, and UserControl in these 2 projects, Even pictures, JS, and so on, if the direct use of relative path, then view mode will not be normal display, if vs directly provide new sub-project functions and can solve the sharing of these files, how good ah.
So through Google, find an article http://blogs.msdn.com/webdevtools/archive/2006/07/01/652986.aspx,Creating sub-projects in IIS With Web application Projects, unfortunately the "Web application Projects" mentioned in the article add-in, I download, but can ' t install!
Although we cannot make such an application, we can modify the configuration according to his ideas.
Discovering his methods is similar to what I did at first, but he can share master and user control, why can't I?
Looked over and found out that he had created a virtual directory in a subproject such as Http://localhost/group, so you could access master in this project before using ~/group.master, and now you can access master in the root directory. Try UserControl, also can, oh, the principle of mystery in this virtual directory.
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