Re: server.mappath
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Inside a class you could use:
System.Web.HttpContext.Current.Server.MapPath("~/mydir/")
"Colin" <c@..cl> schreef in bericht
news:u2uu60O4FHA.3540@xxxxxxxxxxxxxxxxxxxxxxx
> In the code behind server.mappath works fine, yet in a class I get 'Server
> operation is not available in this context'. System.Web.HttpApplication
> is
> inherited in the class, why is this so?
>
> Colin.
>
>
.
Relevant Pages
- Where is it?
... Anyone know what's happened to Discogs? ... Server seems to be down. ... Colin ... Prev by Date: ... (rec.music.ambient) - Re: OH Index
... > OK, in the context of polyols alone, the term OH index, is indeed as ... > explained by Colin. ... Prev by Date: ... (sci.polymers) - SIMPLE QUESTION (I THINK) from clueless
... I have been reading a book and have come across the term 'Application ... I thought I knew what this was but considering the context it is ... 'application server' is/does? ... Prev by Date: ... (alt.html) - Not sure whats happening to update statistics
... I upgraded a server from 7.31.FD7 to 9.40.FC5, started the application, ... stored procedure. ... Colin ... Prev by Date: ... (comp.databases.informix) - Re: What doesnt lend itself to OO?
... > system design within that context seriously). ... >>The first line exists in the server. ... > objects between client and server i.e. as far as the client code is ... the message data packet data in the server between requests, ... (comp.object) |
|