Thread: C-Sharp (C#) Group: How to remove "http://localhost" from my URLs?
C-Sharp (C#) Group: How to remove
"http://localhost" from my
URLs?
2006-02-07 21:26:13
I am testing a web app that links to user defined URLs. I
want the link
to be the exact text the user provided but I can't seem to
get rid of
the "http://localhost"
prefix in the link. Note that I am user defined
email addresses for "mailto:" links and the same
problem occurs.
Is this something that will be removed when the site is
published?
All help is appreciated,
Lee
C-Sharp (C#) Group: Re: How to remove
"http://localhost" from my
URLs?
C-Sharp (C#) Group: Re: How to remove
"http://localhost" from my
URLs?
2006-02-15 17:54:59
Are you using code to generate the link? If you are let us
see the
code.
Post the html link outputed to the browser.
Post a sample link that you have written.
Marty
C-Sharp (C#) Group: Re: How to remove
"http://localhost" from my
URLs?
2006-02-15 21:03:52
Basically it looks like this:
string input = "www.google.com";
string linkText = "http://" + input;
SpanTable.InnerHtml =
"<table><tr><td><a href=" +
linkText + "> LINK
</a></td></tr></table>";
And then the link on the page becomes
"http://localho
st/http://www.google.com"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---