<dl> wrote in message news:uZauEGVdFH A.1456@TK2MSFTN GP15.phx.gbl...
[color=blue]
> How do I refer to the root of the IIS installation in code please?[/color]
Thanks, this is close. I will use it.
Can we get the FQDN or the hostname/computername of the IIS server, please?!
TIA
"Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:%239SMP$Vd FHA.3396@TK2MSF TNGP10.phx.gbl. ..[color=blue]
> <dl> wrote in message news:uZauEGVdFH A.1456@TK2MSFTN GP15.phx.gbl...
>[color=green]
> > How do I refer to the root of the IIS installation in code please?[/color]
>
> Request.ServerV ariables["APPL_PHYSICAL_ PATH"]
>
>[/color]
<dl> wrote in message news:uCe4Q9WdFH A.3492@TK2MSFTN GP14.phx.gbl...
[color=blue]
> Can we get the FQDN or the hostname/computername of the IIS server,
> please?![/color]
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uhpSLVYdFH A.584@TK2MSFTNG P15.phx.gbl...[color=blue]
> <dl> wrote in message news:uCe4Q9WdFH A.3492@TK2MSFTN GP14.phx.gbl...
>[color=green]
>> Can we get the FQDN or the hostname/computername of the IIS server, please?![/color]
>
> System.Environm ent.MachineName
>[/color]
"Juan T. Llibre" <nomailreplies@ nowhere.com> wrote in message
news:eFotRzYdFH A.3328@TK2MSFTN GP09.phx.gbl...
[color=blue]
> That's not a fully qualified domain name.
> It's only the machine name, which may be different.[/color]
You're right - I didn't read the reply properly - apologies.
[color=blue]
> Request.ServerV ariables("HTTP_ HOST")
> returns the complete domain name.[/color]
Thanks guys. Is there a place I can refer to for a list of such
"variables" ?
"Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:Oa$%23mHZd FHA.1288@tk2msf tngp13.phx.gbl. ..[color=blue]
> "Juan T. Llibre" <nomailreplies@ nowhere.com> wrote in message
> news:eFotRzYdFH A.3328@TK2MSFTN GP09.phx.gbl...
>[color=green]
> > That's not a fully qualified domain name.
> > It's only the machine name, which may be different.[/color]
>
> You're right - I didn't read the reply properly - apologies.
>[color=green]
> > Request.ServerV ariables("HTTP_ HOST")
> > returns the complete domain name.[/color]
>
> Yes indeed.
>
>[/color]
Public Sub Page_Load(Sende r As System.Object, E As System.EventArg s)
'Server Variables
Dim vars As NameValueCollec tion = Request.ServerV ariables
If Not IsPostBack Then
Names.DataSourc e=vars
Names.DataBind( )
Else
ValuesHead.Text = "Values: "
If vars.Get(Names. SelectedItem.Te xt).ToString() = Nothing Then
Values.Text = "null"
Else
Values.Text = vars.Get(Names. SelectedItem.Te xt).ToString()
End If
End If
End Sub
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
<dl> wrote in message news:OVMX1PZdFH A.3808@TK2MSFTN GP14.phx.gbl...[color=blue]
> Thanks guys. Is there a place I can refer to for a list of such
> "variables" ?
>
> "Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
> news:Oa$%23mHZd FHA.1288@tk2msf tngp13.phx.gbl. ..[color=green]
>> "Juan T. Llibre" <nomailreplies@ nowhere.com> wrote in message
>> news:eFotRzYdFH A.3328@TK2MSFTN GP09.phx.gbl...
>>[color=darkred]
>> > That's not a fully qualified domain name.
>> > It's only the machine name, which may be different.[/color]
>>
>> You're right - I didn't read the reply properly - apologies.
>>[color=darkred]
>> > Request.ServerV ariables("HTTP_ HOST")
>> > returns the complete domain name.[/color]
>>
>> Yes indeed.
>>
>>[/color]
>
>[/color]
Comment