Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Type mismatch: 'HTMLEncode'

Reply
Thread Tools

Type mismatch: 'HTMLEncode'

 
 
Dave Karmens
Guest
Posts: n/a
 
      02-03-2004
I'm getting the above error and I can't figure out why...

Here is the line:
Response.Write Server.HTMLEncode(queryRS("characterization"))

Running IIS 6.0

DK
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      02-03-2004
Is the value in your recordset null?


Try this.

Response.Write
Server.HTMLEncode(queryRS.Fields.Item("characteriz ation").Value & "")


Ray at work

"Dave Karmens" <(E-Mail Removed)> wrote in message
news:O$(E-Mail Removed)...
> I'm getting the above error and I can't figure out why...
>
> Here is the line:
> Response.Write Server.HTMLEncode(queryRS("characterization"))
>
> Running IIS 6.0
>
> DK



 
Reply With Quote
 
 
 
 
Dave Karmens
Guest
Posts: n/a
 
      02-03-2004
Thanks Ray. I didn't think to check that.

Ray at <%=sLocation%> [MVP] wrote:

> Is the value in your recordset null?
>
>
> Try this.
>
> Response.Write
> Server.HTMLEncode(queryRS.Fields.Item("characteriz ation").Value & "")
>
>
> Ray at work
>
> "Dave Karmens" <(E-Mail Removed)> wrote in message
> news:O$(E-Mail Removed)...
>
>>I'm getting the above error and I can't figure out why...
>>
>>Here is the line:
>>Response.Write Server.HTMLEncode(queryRS("characterization"))
>>
>>Running IIS 6.0
>>
>>DK

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
type(d) != type(d.copy()) when type(d).issubclass(dict) kj Python 5 12-26-2010 06:48 PM
#define ALLOCIT(Type) ((Type*) malloc (sizeof (Type))) Yevgen Muntyan C Programming 10 02-13-2007 02:52 AM
type casting vs. type converting Toby VHDL 3 09-07-2005 01:42 PM
Re: Type casting- a larger type to a smaller type pete C Programming 4 04-02-2004 05:19 PM
Re: Type casting- a larger type to a smaller type heyo C Programming 3 04-01-2004 06:35 PM



Advertisments