• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 716
  • Last Modified:

Using HttpServerUtility in a module

Hi,

I am writing a global function in a module, and i want to use the Server.HTMLEncode/Decode in it.  In a module, i cannot find a way to use Server, even if i import System.Web.HttpServerUtility. How can this be done?

Thanks,
Mike
0
Xavior2K3
Asked:
Xavior2K3
  • 2
1 Solution
 
Thandava VallepalliCommented:
try this

System.Web.HttpContext.current.Server.HTMLEncode()

itsvtk
0
 
Thandava VallepalliCommented:

System.Web.HttpContext.current.Server.HTMLDecode()

itsvtk
0
 
Xavior2K3Author Commented:
Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now