Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Type mismatch: 'HTMLEncode' (http://www.velocityreviews.com/forums/t793091-type-mismatch-htmlencode.html)

Dave Karmens 02-03-2004 02:23 PM

Type mismatch: 'HTMLEncode'
 
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

Ray at 02-03-2004 02:25 PM

Re: Type mismatch: 'HTMLEncode'
 
Is the value in your recordset null?


Try this.

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


Ray at work

"Dave Karmens" <dk_now_48@HOTMAIL.COM> wrote in message
news:O$6iIFm6DHA.3288@TK2MSFTNGP11.phx.gbl...
> 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




Dave Karmens 02-03-2004 02:29 PM

Re: Type mismatch: 'HTMLEncode'
 
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" <dk_now_48@HOTMAIL.COM> wrote in message
> news:O$6iIFm6DHA.3288@TK2MSFTNGP11.phx.gbl...
>
>>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

>
>
>



All times are GMT. The time now is 10:22 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.