Re: Relative url returned in hyperlink field

Tech-Archive recommends: Fix windows errors by optimizing your registry



Is it because you don't have a protocol prefix? Seems like the browser doesn't figure out it's a domain.

What if you try something like this:

DataNavigateUrlFormatString="http://{0}";

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"John" <info@xxxxxxxxxxxxxxxxxxxx> wrote in message news:%23Ebb9IGxIHA.4488@xxxxxxxxxxxxxxxxxxxxxxx
Hi

In a bound grid view I have the following hyperlink field;

<asp:HyperLinkField
DataNavigateUrlFields="FldDirections"
DataNavigateUrlFormatString="{0}"
HeaderText="Directions"
Target="_blank"
Text="Directions">
<HeaderStyle ForeColor="White" />
</asp:HyperLinkField>

FldDirections is coming from the underlying source and provides a url such as www.mydomain.com. Problem is clicking on this hyperlink brings the url relative to were the site is running ie something like http://localhost/Folder1/Folder2/www.mydomain.com. How can I just get the value retuned by FldDirections i.e. www.mydomain.com?

Thanks

Regards


.



Relevant Pages

  • Relative url returned in hyperlink field
    ... In a bound grid view I have the following hyperlink field; ... FldDirections is coming from the underlying source and provides a url such ...
    (microsoft.public.dotnet.framework.aspnet)
  • hyperlink fields in Access 2000
    ... I have a hyperlink field that works correctly, however, ... internet browser to be opened. ... of the browser is opened everytime the hyperlink field is ...
    (microsoft.public.access.externaldata)
  • Re: Relative url returned in hyperlink field
    ... In a bound grid view I have the following hyperlink field; ... FldDirections is coming from the underlying source and provides a url ...
    (microsoft.public.dotnet.framework.aspnet)