HttpServerUtility.UrlEncode bound to ASP.NET?

  • Thread starter Thread starter uv2003
  • Start date Start date
U

uv2003

Greetings,
I've read through some other posts and looked at this class through
reflector. All of its contructors are internal, so it cannot be
instantiated outside of ASP.NET. This seems unfortunate to me. I'd like
to be able to UrlEncode some text completely independent of a web
server. Is the only solution to write my own class that does the same
thing?

Thanks
 
Well,
As seems to be the "Law of Usenet", I found out by just looking a
little deeper that the method just reuses the public static
HttpUlity.UrlEncode method, so that solves the problem!
 
Back
Top