Setting up a static page URL in user-control or masterpage.

Posted by Community Admin on 05-Aug-2018 09:56

Setting up a static page URL in user-control or masterpage.

All Replies

Posted by Community Admin on 27-Jun-2012 00:00

Our project folder is not in root folder, it's in a subfolder like

Local URL: xxx.xxx.xxx.xxx/.../company

Server URL: xxx.xxx.xxx.xxx/.../company

This is 'company' page. Now, in our footer there is a link to go to "Company" page. If we set it as <a href='/company' >Company</a> then it goes to http://xxx.xxx.xxx.xxx/company at our localhost or to http://xxx.xxx.xxx.xxx/company at the server.

How do we set the url so that it will work in both our localhost and server?

This thread is closed