I have a Win32 app that needs to gain access to the HttpServerUtility Server.URLEncode and Server.URLDecode methods.
Basically, what I need to do is something along these lines.
Even with the appropriate using statements I cannot create an instance of the Page object. I understand that the Page object represents a .aspx page residing on a web server, but basically all I want is access to the methods.
Has anyone ever run across this or have a solution?
Thanks
Basically, what I need to do is something along these lines.
Code:
public string EncryptString(string val)
{
Page objPage = new Page();
string strReturn = "";
strReturn = mobjBlowfishSimple.Encrypt(val);
return objPage.Server.UrlEncode(strReturn);
}
Even with the appropriate using statements I cannot create an instance of the Page object. I understand that the Page object represents a .aspx page residing on a web server, but basically all I want is access to the methods.
Has anyone ever run across this or have a solution?
Thanks