Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 10th, 2003, 09:12 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default Type mismatch - Going Nuts

I am recieving this error when loading the code below

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'isGood'

/support/featured.asp, line 9

Can anyone please help: id is a number value (example 2456)




<%'option explicit%>


<%
dim dbrec,id,status,dbcon
status=trim(request.querystring("status"))
if status="remove" then
    id=request.querystring("id")
    if isGood(id) then
        set dbcon=server.createobject("adodb.connection")
        dbcon.open strconnection
        dbcon.execute "update properties set properties.featured=false where properties.propertyid=" & id
        set dbcon=nothing
    end if
elseif len(request.form("addfeatured")) then
    id=request.form("id")
    if isGood(id) then
        set dbcon=server.createobject("adodb.connection")
        dbcon.open strconnection
        dbcon.execute "update properties set properties.featured=true where properties.refno='" & id & "'"
        set dbcon=nothing
    end if
end if
 
Old July 10th, 2003, 03:15 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

First of all, this is an ASP.NET forum and your question is classic ASP related. You may try your luck at one of the ASP lists.

Anyway, where is the isGood function defined? isGood is not a built-in function, so you'll need to define it somewhere. Is it in one of your include files? If so, please post the code, as it may contain the reason for your error.....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
type mismatch frresh Pro Visual Basic 2005 1 April 11th, 2006 08:35 AM
Type Mismatch ozPATT VB How-To 1 September 18th, 2005 01:00 PM
Type Mismatch Anup Gavate VB How-To 4 March 28th, 2005 01:48 PM
Type mismatch per.holleufer Classic ASP Basics 5 July 31st, 2004 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.