List Info

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?
user name
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?
user name
2006-02-08 20:21:02
you need http:// in order to outside...

for instance <a
href="www.blah.com">blah</a> will go to
http://SERVER_NAME/ww
w.blah.com

You gotta go like <a href="http://ww
w.blah.com">blah</a> if you want to
go to http://www.blah.com
when the user clicks the link.

It works the same way for Redirect and Execute...

Marty

C-Sharp (C#) Group: Re: How to remove "http://localhost" from my URLs?
user name
2006-02-09 01:44:03
Weird, ok, thanks for the help

C-Sharp (C#) Group: Re: How to remove "http://localhost" from my URLs?
user name
2006-02-15 15:45:41
Well, turns out that doesn't work. Now my links take me to
"http://SERVER_
NAME/http://www.blah.com"

What is going on?

C-Sharp (C#) Group: Re: How to remove "http://localhost" from my URLs?
user name
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?
user name
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
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )