Server is a property exposed by the Control class, unless your own class
also inherits from control (as do all pages, user controls and server
controls), it won't magically show up.
You can get a reference to the server class from your own class via:
HttpContext.Current.Server
note that if your class is consumed by a non-webclient, HttpContext.Current
will be null and thus you'll get a nullreference exception.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mortar" <a@b.com> wrote in message
news:43***************@nntp.broadband.rogers.com.. .
in my class, i am trying to use Server.MapPath, but it says type or
namespace 'Server' can not be found.
i am using this in my webpages and it works fine. I thought maybe the
class was missing a using directive so i added all the same ones that
the webpages have but still no go.
anyone know what the problem is?