View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default hyperlink URL forced to localhost

How about ask in an ASP.Net group ?

NickHK

"Eggle" wrote in message
...
I write a hyperlink in a cell but the URL has "localhost" where it should
have the URL I actually specified in my code.

Some sort of substitution is happening. Any ideas?

1) I have unchecked the "replace as you type" AutoCorrect feature.

2) This is the URL opened when I click on my hyperlink cell

http://localhost/vrs/bioReport.aspx?...LU42N27Z339824
It should be
http://isid6403/vrs/bioReport.aspx?l...LU42N27Z339824
ISID6403 is a windows machine on my intranet, not an outside www URL

3) This is the code that creates the URL - - ASP.NET, C# - - no its not VB

string myName = Request.ServerVariables["SERVER_NAME"];
string vrsURL =
string.Format("http://{0}/vrs/bioReport.aspx?lineID={1}",myName,lineID);

4) I log "SERVER_NAME" to the eventlog and it shows

"SERVER_NAME=ISID6403"

So, how do I get a real intranet URL in my hyperlink????