Answer to Question #14927 in C# for Mincy Murali

Question #14927
How can we connect two .net web applications? I have only one domain name and hosted the first application. Now i want to host the 2nd application using a link from a page in the 1st app. Can you suggest a way?
1
Expert's answer
2012-11-08T07:38:21-0500
There are several considerations around the site / backoffice relations.

But to get to the bottom line of your question: Put your media files inside a totally separate directory, then save its location in each app's (WebForms + MVC) Web.config file, and access it by reading the appropriate configuration key. For example:
C:WebsMyFrontEndMvcSite
C:WebsMyBackOffice
C:WebsContent


Your domain could be called static.mysite.com.
It will also help you keep your site (and backoffice) clean from "user generated content", so every time you deploy, you can freely override the whole app and not afraid that you accidentally delete custom user content (the only thing you'll need to worry of is not overriding web.config in the production server).

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS