Problem with function

S

shapper

Hello,

I have a class inside my page class where I have the following code:

Server.HtmlDecode("MyString")

I get the error:

Reference to a non-shared member requires an object reference.

How can I solve this?

Could you give me an example?

Thanks,

Miguel
 
C

Cowboy \(Gregory A. Beamer\)

In the ASP.NET app?
Dim svr As HttpServerUtility = Me.Server

'then change line to this

svr.HtmlDecode("MyString")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top