T
tshad
gerry said:try : test = Page.ResolveUrl("displayCompanyOverview.aspx")
Great.
That works as long as I leave the ~ out.
I am now getting "/jobSeeker/displayCompanyOverview.aspx" which is what I
was looking for.
But what is the syntax to add it into the HyperLink object?
I tried:
<asp:Hyperlink ID="test2" Text="HyperLink Test with ResolveURL"
NavigateUrl='<%= Page.ResolveUrl("displayCompanyOverview.aspx") %>'
runat="server"/><br>
and this gives me:
http://www.stw.com/applicant/<%=%20Page.ResolveUrl("displayCompanyOverview.aspx")%20%>
I also tried <% %> and had the same problem? Do I need sometype of Eval
syntax?
Thanks,
Tom