CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Microsoft VBScript runtime (0x800A000D) Type mismatch: 'CInt'

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    40
  • Date Created
    Tuesday, November 16, 2010
  • Last Updated
    Wednesday, November 17, 2010
  • This Article Has been Viewed
    3831 times
  • Short Desc
    When you pass an Integer value and you have an invalid character within the value, you will get this error.
  • Details
    When you have a Querystring that consist of variables and which contains an invalid character that suppose to be an Integer (Number), then this error will happen.

     
    Microsoft VBScript runtime (0x800A000D)
    Type mismatch: 'CInt'
    /paging.asp, line 39
  • Recreate Issue
    To recreate this error

    paging.asp?Type=Results&NumPerPage=10&page=1'

    Code Example of this error
    <A href=" & ScriptName & "?NumPerPage=" & NumPerPage & "&page=1'>

    As you can see in the above Querystring, at the end is: page=1'
    The single quote does not belong in the String and must be removed.
    Removing it from the Querystring itself only corrects it temporarily.
    This issue may only be resolved from within the code itself.
  • Resolve Issue
    To correct the issue, check your code for invalid characters.

    Examples
    #1: <A href=" & ScriptName & "?NumPerPage=" & NumPerPage & "&page=1'>
    In the above code, you will notice that after the page=1 there is a single quote.
    This is what has caused this paticular issue.
    Removing the single Quote from the end will correct the issue.

    <A href=" & ScriptName & "?NumPerPage=" & NumPerPage & "&page=1>