473,414 Members | 1,711 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,414 software developers and data experts.

Server.HtmlDecode for windows services (Urgent)

Hello,

does anybody knows the equilant of Server.HtmlDecode when
creating a windows service?

Thanks, Sonu
Nov 18 '05 #1
4 2396
I think System.Web.HttpUtility.HtmlDecode, which is a static function,
should do the trick. HttpUtility is a pretty useful class for programs
which don't have access to a Server object like you do in ASP.Net

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Sonu Kapoor" <so********@gmail.com> wrote in message
news:18****************************@phx.gbl...
Hello,

does anybody knows the equilant of Server.HtmlDecode when
creating a windows service?

Thanks, Sonu

Nov 18 '05 #2
Hi Karl,

I get the following error when using this:

"HttpUtility" is not a member of "web".

Sonu

-----Original Message-----
I think System.Web.HttpUtility.HtmlDecode, which is a static function,should do the trick. HttpUtility is a pretty useful class for programswhich don't have access to a Server object like you do in ASP.Net
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Sonu Kapoor" <so********@gmail.com> wrote in message
news:18****************************@phx.gbl...
Hello,

does anybody knows the equilant of Server.HtmlDecode when creating a windows service?

Thanks, Sonu

.

Nov 18 '05 #3
You don't have the System.Web.dll referenced in your project.

Unfortunately, System.dll actually has a System.Web namespace in it, which
is why the error is what it is. Simply reference System.Web.dll :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Sonu Kapoor" <so********@gmail.com> wrote in message
news:18****************************@phx.gbl...
Hi Karl,

I get the following error when using this:

"HttpUtility" is not a member of "web".

Sonu

-----Original Message-----
I think System.Web.HttpUtility.HtmlDecode, which is a

static function,
should do the trick. HttpUtility is a pretty useful

class for programs
which don't have access to a Server object like you do in

ASP.Net

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Sonu Kapoor" <so********@gmail.com> wrote in message
news:18****************************@phx.gbl...
Hello,

does anybody knows the equilant of Server.HtmlDecode when creating a windows service?

Thanks, Sonu

.

Nov 18 '05 #4
Hello,

I imported the System.Web via the project properties
and thought that this should be enough. But it wasnt. I
have reference System.Web and it works now. Many thanks.

Sonu

-----Original Message-----
You don't have the System.Web.dll referenced in your project.
Unfortunately, System.dll actually has a System.Web namespace in it, whichis why the error is what it is. Simply reference System.Web.dll :)
Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Sonu Kapoor" <so********@gmail.com> wrote in message
news:18****************************@phx.gbl...
Hi Karl,

I get the following error when using this:

"HttpUtility" is not a member of "web".

Sonu

>-----Original Message-----
>I think System.Web.HttpUtility.HtmlDecode, which is a

static function,
>should do the trick. HttpUtility is a pretty useful

class for programs
>which don't have access to a Server object like you do
in ASP.Net
>
>Karl
>
>--
>MY ASP.Net tutorials
>http://www.openmymind.net/
>
>
>"Sonu Kapoor" <so********@gmail.com> wrote in message
>news:18****************************@phx.gbl...
>> Hello,
>>
>> does anybody knows the equilant of Server.HtmlDecode

when
>> creating a windows service?
>>
>> Thanks, Sonu
>
>
>.
>

.

Nov 18 '05 #5

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

Similar topics

4
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is...
3
by: b.Wurm | last post by:
how can I write a server.htmlDecode function? thank you
8
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my...
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....
8
by: Woody Splawn | last post by:
I am asking this question here because I asked this question in the Reporting Services Newsgroup and did not get an answer. Does anyone know if Reporting Services is intended to work in a...
5
by: Larry | last post by:
Hi, I am a newcomer to VC++ (specifically programming on Microsoft platforms); and I have a very basic question about windows services. Using Windows Services mechanism is it possible to...
8
by: emailmygroup | last post by:
I am trying to decode character ‘#; but it is not working. Anybody knows how to decode this character?
4
by: ags5406 | last post by:
Hi All I have a task that I'm thinking about attacking in two different ways but don't know enough about Windows Services. First: We have a server application written in VB.net that acts as...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service that I want to host in windows service. The problem is that if I host it as windows service it does not use the configuration file. I have to define the binding,...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.