asp.net - how to reference different projects in one solution and access through link in MVC4 -


i have 2 projects in 1 solution 1 company.admin , other company.web, want link these 2 example if write http://localhost60693.com/web company.web view should open , when write http://localhost60693.com/admin redirect me admin panel...please me..what logic should implement in controller or action links? , guide me how publish multiple projects in mvc4? thanks

as @maxs87 say, can create areas every section. if must use them in separate project, conside have multiple web application in 1 solution, have multiple sites after deploying. can create helper link cross site other or come back:

public static string myredirectlink(string sitename, string controller, string action, string text)     {          stringbuilder result = new stringbuilder();        string url = "http://" + sitename + "/";        url = url + controller + "/" + action;        result.appendformat("<a href=\"{0}\" target=\"blank\" >{1}", url, text);        result.appendline("</a>");     } 

and in view use it:

@html.raw(mylibrary.htmlcodehelper.myredirectlink("mysite", "admin", "index", "go admin site" )) 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -