I've created a web application on my sharepoint farm: sharepoint.local Name: https://app.sharepoint.local

Outside of my farm the site is available through an UAG server on:

(UAG/AAM pointing to the internal url)

In my code behind I use the current url to specify my web app url and execute some code. I was wondring how I could dynamically retrieve my web app url if users are using the public url: https://app.publicurl.com

Are there out of the box functions for this?


You can use this.Page.Request.Url, unless I'm missing something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.