Tuesday, March 13, 2012

Server.MapPath

I remember reading somehwere that in some situations you should not use Server.MapPath and instead there was some other function you should use. Unfortunatly I don't recall where I read it or what the function was. Can anyone refresh my memory?

-SteveWhen your code is run in design mode (VS.NET or WebMatrix), Server.MapPath doesn't provide a useful path. There is no alternative method built into ASP.NET to solve this in design mode. If you are looking for a solution in design mode, ask and I can provide a third party solution.

0 comments:

Post a Comment