.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

How to get the url

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :SharePoint
 

Hi,

I have 2 sites,

http://abc.com

http://abc.com:8080

Now in abc.com, I want to refer to abc.com:8080, but I don't want to hard code it as abc.com might change eventually to say http://abcd.com and the 8080 will change to http://abcd.com:8080

I know say for example if I want to refer a page http://abc.com/test/page.aspx, I can do /test/page.aspx How can I do something similar if I want to refer to the abc.com:8080 port's page from abc.com

Thanks in advance.




View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend