Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Hyperlink and ResolveURL
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="tshad, post: 2998161"] I decided to try one more time to use the HyperLink in my Datagrid using <%# %> and eval and unlike a Hyperlink which outside of the datagrid gives me nothing, this does resolve the path but doesn't do it the same as when you do it programmatically. If I do: dim test as String test = Page.ResolveUrl("displayCompanyOverview.aspx") test3.NavigateURL = Page.ResolveUrl("displayCompanyOverview.aspx") This works fine and gives you the URL: /jobseeker/displayCompanyOverview.aspx (the Current Page Path) If I do: <asp:HyperLinkColumn ItemStyle-Width="190" DataTextField="JobTitle" DataTextFormatString="{0}" DataNavigateUrlField="PositionID" DataNavigateUrlFormatString='<%# Page.ResolveURL("displayPositionNS.aspx?PositionID=" + eval("{0}"))' This gives me: /applicant/displayPositionNS.aspx?PositionID=210 (The Controls Path I have no idea why this is working this way. It makes no sense to me. It doesn't appear to be using the ResolveURL at all. If it did, it would resolve to the same path as when it was done programatically. Tom [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Hyperlink and ResolveURL
Top