473,378 Members | 1,319 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

HtmlEncode and HtmlDecode in windows service.

Hi All,

I want to use "HtmlEncode" and "HtmlDecode" functionality of "Server" class
in Windows service.

Since these are not shared functions, I could not used it in non Web
Application.

Is there any such functions available in other Namespaces?

Please Advise.

Thanks and Regards,

Sakharam
Nov 19 '05 #1
2 2937
Hi,

I am not sure about this. But cant you add reference to System.web &
use this functionality

System.web.httputility has HTMLEncode & HTMLDecode functions (both are
static)

Does this help?

Kalpesh

Nov 19 '05 #2
Thanks Kalpesh,

Oops.. I was only thinking about System.Web.HttpContext.Current.Server
Class.

Since these are shared functions in System.web.httputility class it should
work.

Thanks again.

Sakharam.


"Kalpesh" <sh*********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi,

I am not sure about this. But cant you add reference to System.web &
use this functionality

System.web.httputility has HTMLEncode & HTMLDecode functions (both are
static)

Does this help?

Kalpesh

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Danny | last post by:
In the classic asp, I can use escape built-in function (server side function) like this: <script language=javascript> var myContent = unescape(<%=escape(strContent)%>) </script> How do I do...
1
by: Frank Thomas | last post by:
I'm writing a utility that will read HTML pages and snippets and store them in a database. I plan to HtmlEncode the text prior to writing it to the database. My question has to do with pages and...
4
by: Sonu Kapoor | last post by:
Hello, does anybody knows the equilant of Server.HtmlDecode when creating a windows service? Thanks, Sonu
5
by: Jonas Åkermark | last post by:
Hello! I have a problem decoding the czech character: r The HTML code for this character is ř but when running Server.HTMLdecode on that string it just returns ř instead of the real char....
0
by: JP | last post by:
I have a text area that I allow the users to pertty much type what they want. I started getting A potentially dangerous Request.Form value was detected from the client. I added the 2nd line to each...
3
by: David Lozzi | last post by:
Howdy, I have my left navigation of Hyperlinks, and part of the link's querystring is the title of the page they are going to. For example, one of the pages is Cars & Trucks. With HtmlEncode, it...
3
by: MRW | last post by:
Hello! I'm taking a file name from a database and using the <asp:imagetag in GridView to show the image. However, some of the file names have spaces in it and no matter what I do, for example:...
1
by: Alexander Higgins | last post by:
>>Thanks for the response.... Point Taken but this is not the case. Thus, if a person writes a text file on her or his computer and does not use UNICODE to save it, the current code page is...
1
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
I'm creating a simple utility that generates some XHTML. It does this from data submitted in a spreadsheet. It's a desktop application (WinForms). I've used Server.htmlencode and...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.