Posted on: 4/9/2015 3:11:33 PM | Views : 585

I set up a virtual directory in IIS 7.  It points to a different web.  I'm trying to create a web link - to go from current web to virtual directory web.  The reason for this is there are 3 different servers I have to move the pages to and I don't want to hand code links in each server.  Using asp.net 4.0. So Ex:  There's web1 and web2.  In web2 there's a virtual directory, called "mainweb1" pointing to web1.   In web2 there's a link that I want to go to web1 using the virtual directory.   
What the link should look like in web2: http://localhost/web1/news/newspage.aspx Currently it comes out like:  http://localhost/web2/web1/news/newspage.aspx Any ideas? Js

Go to the complete details ...