I have a datagrid, which is written to programatically, I want to populate one of the fields as URL, howevere the url's are quite long, so i just want to mask them all with the word "link", any ideas how i can do this?
here is my code:
<asp:HyperLinkField DataTextField="location" DataNavigateUrlFields=location HeaderText="Link" />
also, the link will work fine for URL's but then the value is a file directory it replaces the beginnig with the localhost address e.g
this link works fine when i open manually
http://domain.company.net//download/word_doc.doc
but when opened as hyperlink through code above it comes out as
http://localhost/Website/%20http://d...d/word_doc.doc
any ideas on both?