Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

system.web functionality in Mono missing?

I need HttpUtility for encoding strings, but it seems it was supported, but no longer. Actually, the whole System.Web is gone.

Is there an alternative? I need to Javascript Escape some strings.

like image 802
angel of code Avatar asked May 06 '11 09:05

angel of code


2 Answers

The HttpUtility class lives in the System.Web.Services assembly, just make sure that you are referencing that assembly.

like image 87
miguel.de.icaza Avatar answered Sep 20 '22 07:09

miguel.de.icaza


I am using Xamarin Studio with Mono 3.0.10 and in there, you need to reference the System.Web dll and include it with

using System.Web;

Then you will have the HTTPUtility and encode/decode functionality available

like image 45
EeKay Avatar answered Sep 23 '22 07:09

EeKay