T
tshad
I need to explicitly use the path of my page and am trying to do the
following:
<asp:Hyperlink ID="test" Text="HyperLinkTest" NavigateUrl=<%#
request.ServerVariables("PATH_INFO").Substring(0,request.ServerVariables("PATH_INFO").LastIndexOf("/")+1)
& "displayCompanyOverview.aspx" %> runat="server"/><br>
This doesn't work as it only displays static text.
In my trace statement,
request.ServerVariables("PATH_INFO").Substring(0,request.ServerVariables("PATH_INFO").LastIndexOf("/")+1)
& "displayCompanyOverview.aspx" equates to
"/jobseeker/displayCompanyOverview.aspx" which looks correct?
I assume my syntax is wrong.
Do I need to do some type of "Eval" to make this work?
Thanks,
Tom
following:
<asp:Hyperlink ID="test" Text="HyperLinkTest" NavigateUrl=<%#
request.ServerVariables("PATH_INFO").Substring(0,request.ServerVariables("PATH_INFO").LastIndexOf("/")+1)
& "displayCompanyOverview.aspx" %> runat="server"/><br>
This doesn't work as it only displays static text.
In my trace statement,
request.ServerVariables("PATH_INFO").Substring(0,request.ServerVariables("PATH_INFO").LastIndexOf("/")+1)
& "displayCompanyOverview.aspx" equates to
"/jobseeker/displayCompanyOverview.aspx" which looks correct?
I assume my syntax is wrong.
Do I need to do some type of "Eval" to make this work?
Thanks,
Tom