This site is ASP.NET 4.0 connected to a SQL 2005 backend. The database has a table that, among other things, lists the names and URIs of external sites for reference purposes. A webform has a ListView control bound to an ObjectDataSource that pulls the data from this table. The ItemTemplate and the AlternatingItemTemplate have been edited so that they contain this HyperLink:
NavigateUrl='<%# Eval("Maplink") %>' />
The page renders the data normally but the HyperLinks aren't working as intended. For example, the datatable record might contain
But when the HyperLink is created in the ListView, it comes out as:
which, of course, fails.
How can I set up the HyperLink to route to the external site and ignore the local domain path?
Thanks for any suggestions.
View Complete Post