What do you mean 'reference'? Do you want the actual file system directory
(C:\inetpub\www root\...)? Then use Server.MapPath( ".")
and if not, you want to reference it via a relative URL, you use "." (no
quotes) to mean the current directory. Note I used this above to the
function call MapPath
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"Steve S" <highd@rogersNO SPAM.com> wrote in message
news:78YZa.1675 07$rsJ.72795@ne ws04.bloor.is.n et.cable.rogers .com...[color=blue]
> In the code, how do you reference the web directory that the files sit in?
>
> Thanks
>
>[/color]
I need to know how to do it in the .cs file, not the aspx. (sorry, my fault
:)
Thanks,
Steve
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox @sympatico.ca> wrote in message
news:OVvWPrHYDH A.2464@TK2MSFTN GP09.phx.gbl...[color=blue]
> Hi Steve,
>
> Did you mean the physical location on the drive? If so:
>
> Response.Write( Server.MapPath( ""))
>
> Or the virtual path:
>
> Response.Write( Request.Path)
>
> Ken
>
> --
> Microsoft MVPs have a question for *you*: Are you patched against the[/color]
Worm?[color=blue]
> http://www.microsoft.com/security/se...s/ms03-026.asp
>
>
>
> "Steve S" <highd@rogersNO SPAM.com> wrote in message
> news:78YZa.1675 07$rsJ.72795@ne ws04.bloor.is.n et.cable.rogers .com...
> In the code, how do you reference the web directory that the files sit in?
>
> Thanks
>
>
>[/color]
Comment