Type mismatch: 'Server.HTMLEncode' -- inc_CuteEditor.asp, line 851

Last post 11-22-2005, 5:21 AM by rcroeder. 1 replies.
Sort Posts: Previous Next
  •  10-16-2005, 12:26 PM 11751

    Type mismatch: 'Server.HTMLEncode' -- inc_CuteEditor.asp, line 851

    ERROR
    Microsoft VBScript runtime error '800a000d'
    Type mismatch: 'Server.HTMLEncode'
    /includes/inc_CuteEditor.asp, line 851

    FIX at line 851
    if s_Text<> "" then :s_Text=Server.HTMLEncode( s_Text ): else s_Text=" ": end if

    '##TODO## Assert Preconditions for s_Text and the use of Server.HTMLEncode(NULL)
    '##RISK##  [s_Text] might come from a database, and when you go to edit that record for the first time it is null.
  •  11-22-2005, 5:21 AM 12850 in reply to 11751

    Re: Type mismatch: 'Server.HTMLEncode' -- inc_CuteEditor.asp, line 851

    This appears that s_text is null, the line should read
     
    if isnull(s_Text) = false and s_Text<> "" then :s_Text=Server.HTMLEncode( s_Text ): else s_Text=" ": end if

    and this should work
View as RSS news feed in XML