I have a page whose relative path is “~/pages/mypage.aspx”.
I tried using VirtualPathUtility.ToAbsolute(@”~/pages/mypage.aspx”) hoping to get the absolute uri but it only returns the same relative path.
How could I get the absolute uri from this relative uri?
Thanks,
I used this method: