Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi All,

My Solution having 4 projects. here i wanna call one partial view from Project4 to project1... here am using dll method. using project4 dll as reference for project1.. but still not working..

Thanks
DK
Posted

1 solution

It will not work using DLL. Partial view is nothing but a HTML page right ?
In this case for all project 1 to 4 have inside a Single MVC project and for each of these project create areas. Area for Project 1 area for Project 2,...and so on. On the Main MVC project inside Shared folder keep your partial view and use it wherever you need it.
If All these four project can not be clubbed together, because of some constraint then create a separate MVC project which can be act as a common platform for all these four projects.
Again all these are alternatives. Just by using DLL you can not pass a HTML page(partial view) from one project to another project.
 
Share this answer
 
Comments
Member 12815787 6-Mar-17 4:13am    
please explain it programmatically

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900