I'm creating a list of hyperlinks using info from my database:
Code:
listItemsDivInnerHtml &= "<a href='" & strLinkUrlIfRenderListsAsLinksEqualsTrue & "'>» " & reader("listItemName") & "</a>" & "<br />" & vbLf
the variable "strLinkUrlIfRenderListsAsLinksEqualsTrue" has a value of "../pages/personal/myPersonalPage.aspx?uid=34235". However when the <a> tag gets rendered, the href value gets the current pages path as a prefix to the value stored in the variable. How can I prohibit this from happening?
What I get:
<a href='http://www.mydom.com/website/condi/../pages/personal/myPersonalPage.aspx?uid=34235'>......
What I want"
<a href='../pages/personal/myPersonalPage.aspx?uid=34235'>.......