Server and url seem to relate but don't.
Server seems to be obtainable at all time, resolveurl is context related.
Server:
Dim p As New System.Web.UI.Page
p.server.mappath(...
p.dispose
"Lloyd Dupont" <net.galador@ld> schreef in bericht
news:Ok**************@tk2msftngp13.phx.gbl...
HttpContext.Current.Server.MapPath("~/App_Data")
seems to do the trick!!!
"Lloyd Dupont" <net.galador@ld> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl... When I want some app resources I usually write something like:
MapPath(ResolveUrl("~/App_Data/MyResource"))
How could I do the same thing in a static helper method?
I mean MapPath & ResolveUrl are instance method of Page, so a static
method can't use them...
--
I have taken a vow of poverty. If you want to really piss me off, send me
money.