Two options:
First check out System.Web.HttpUtility it has a number of static methods
that you can use...though it isn't the full list available from an instance
of the HttpServerUtility class.
If you need something from HttpServerUtility, check:
System.Web.HttpContext.Current.Server which is a reference to the same
Server instance you have in pages. HttpContext.Current could return a null
value if your code isn't inside a web-request, so you might wanna check for
null and gracefully handle the exception...or not...
Karl
"Joe Rattz" <jo******@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
I am needing to get a reference to the HttpServerUtility obect (Server)
from a method that does not have access to it. How should I do this?
Thanks.