link problems

  • Thread starter Thread starter Lee Roth
  • Start date Start date
L

Lee Roth

Using C# in VS2005 I have been unable to create links that: go to
outside sites, link to a specific location regardless of start page,
use "mailto:".

Outside links:
When I try to link to "www.google.com" I use "<a href =
"http://www.google.com"> and the link ends up taking me to
"http://local_server/http://www.google.com"

Specific link in the site:
I want to use a link on the master page to go to a certain page
regardless of what directory I start in. I was told using
"~/folder/page.aspx" would get me there but really it just takes me to
(assuming I start at "http://local_server/folder2/otherpage.aspx")
"http://local_server/folder2/~/folder/page.aspx"

Mailto:
How does the "mailto" in an <a> tag work? Mine are trying to take me to
"http://local_server/mailto:[email protected]"

ALL HELP IS GREATLY APPRECIATED

Thanks,
Lee
 
OK, solutions:

Outside links: needed quotes around the link in the anchor tag.

Link in the site: needed to use the link with a "/" and no "~" and then
change IIS settings to keep session info in cookies instead of URI

Mailto: same quotes issues as the outside links.
 
Back
Top