UrlDecode

  • Thread starter Thread starter Kenan Kilictepe
  • Start date Start date
K

Kenan Kilictepe

How can I use HTTPUtility.UrlDecode method in a windows application?
Isn`t it possible?
VS IDE doesn`t show HTTPUtility Class in System.Web namespace.

Thanks
 
Kenan said:
How can I use HTTPUtility.UrlDecode method in a windows application?
Isn`t it possible?
VS IDE doesn`t show HTTPUtility Class in System.Web namespace.

Have you added a reference to System.Web.dll to your project? That doesn't
get added by default for Windows applications so you'll need to add it
manually. Just right click on the References for the project, select Add
Reference, select System.Web.dll in the list of .NET references. Once that
is added you should then be able to use the UrlDecode method on the
HttpUtility class.
 
Never tried it, but it should just need a reference to System.Web in the
winforms project.

string s = System.Web.HttpUtility.UrlEncode("this is a test");


John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
 
Thanks.

Tom Porterfield said:
Have you added a reference to System.Web.dll to your project? That
doesn't get added by default for Windows applications so you'll need to
add it manually. Just right click on the References for the project,
select Add Reference, select System.Web.dll in the list of .NET
references. Once that is added you should then be able to use the
UrlDecode method on the HttpUtility class.
 
Back
Top