Re: Relative url returned in hyperlink field
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Mon, 2 Jun 2008 01:03:52 -0600
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
.
- Follow-Ups:
- Re: Relative url returned in hyperlink field
- From: John
- Re: Relative url returned in hyperlink field
- References:
- Relative url returned in hyperlink field
- From: John
- Relative url returned in hyperlink field
- Prev by Date: RE: Cache-control and Expires headers
- Next by Date: silverlight
- Previous by thread: Relative url returned in hyperlink field
- Next by thread: Re: Relative url returned in hyperlink field
- Index(es):
Relevant Pages
|