This is similar to my image problem with SITE FINITY:
When working with URL's SiteFinity appears to overtake my URL's.
I am trying to CODE A RELATIVE URL..
and none of these options work.
THE URLS eventually look like this (on page render)
"SITEFINITY CURRENT WEBSITE LOCATION" + the hyperlink text I Add.
SITE FINITY HIJACKS THE HYPERLINK(s) and PLACES THE PAGES VIRTUAL URL in BEFORE MY URL..... so no matter what I try the HYPERLINK IS MESSED UP.
Please help with the HIJACKING...
SEARCH ENGINE INDEX:
sitefinity url is rewritten
sitefinity url hyperlink is rewritten
sitefinity hyperlink <a
sitefinity relative url links
sitefinity hyperlinks which are relative to the website domain do not work
THIS DOES NOT WORK
e.Row.Cells[3].Text =
"<a href='~" + HttpContext.Current.Request.Url.AbsoluteUri + "?id=" + controlVarCourseId + "&classdate=" + locCurrentDateOfRow + "'>Click here to view the schedule</a>";
THIS DOES NOT WORK
e.Row.Cells[3].Text =
"<a href='~" + HttpContext.Current.Request.Url.AbsolutePath + "?id=" + controlVarCourseId + "&classdate=" + locCurrentDateOfRow + "'>Click here to view the schedule</a>";
THIS DOES NOT WORK
e.Row.Cells[3].Text =
"<a href='.." + HttpContext.Current.Request.Url.AbsolutePath + "?id=" + controlVarCourseId + "&classdate=" + locCurrentDateOfRow + "'>Click here to view the schedule</a>";
THIS DOES NOT WORK
e.Row.Cells[3].Text =
"<a href='~/DougPage.aspx?id=" + controlVarCourseId + "&classdate=" + locCurrentDateOfRow + "'>Click here to view the schedule</a>";
MORE EXAMPLES WITH EVERY DECLARED IN THE CONTROL
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/DougTest2.aspx" >THIS DEFAULTS TO http://www.myWebsite.com/Doug.aspx</asp:HyperLink>