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")


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 

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

Similar Threads


Top