Question on Class'

Results 1 to 2 of 2

Thread: Question on Class'

  1. #1
    Join Date
    Dec 1969

    Default Question on Class'

    Hi all, <BR><BR>I have a class with a public function that returns as datatable. Inside this function I want to use "Server.HtmlEncode(value)", but I get the following error: <BR><BR>Reference to a non-shared member requires an object reference. <BR><BR>How do I fixed my code so I can use Server.HtmlEncode? <BR><BR>Cheers, <BR>D.

  2. #2
    Join Date
    Dec 1969

    Default RE: Question on Class'

    Try:<BR><BR>HttpContext.Current.Server.HtmlEncode( value)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts