Type mismatch: 'HTMLEncode'

Discussion in 'ASP General' started by Dave Karmens, Feb 3, 2004.

  1. Dave Karmens

    Dave Karmens Guest

    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, Feb 3, 2004
    #1
    1. Advertising

  2. Dave Karmens

    Ray at Guest

    Is the value in your recordset null?


    Try this.

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


    Ray at work

    "Dave Karmens" <> wrote in message
    news:O$...
    > 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, Feb 3, 2004
    #2
    1. Advertising

  3. Dave Karmens

    Dave Karmens Guest

    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("characterization").Value & "")
    >
    >
    > Ray at work
    >
    > "Dave Karmens" <> wrote in message
    > news:O$...
    >
    >>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, Feb 3, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. data type mismatch error

    , Aug 10, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    623
    Karl Seguin
    Aug 10, 2005
  2. type mismatch error

    , Aug 12, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,337
    Kevin Spencer
    Aug 12, 2005
  3. Artie Gold

    Re: type mismatch

    Artie Gold, Feb 28, 2004, in forum: C Programming
    Replies:
    0
    Views:
    387
    Artie Gold
    Feb 28, 2004
  4. Harry Pehkonen

    win32com, string array --> Type mismatch?

    Harry Pehkonen, Aug 8, 2003, in forum: Python
    Replies:
    2
    Views:
    1,846
    Harry Pehkonen
    Aug 11, 2003
  5. programmingzeal
    Replies:
    0
    Views:
    1,092
    programmingzeal
    May 6, 2012
Loading...

Share This Page