Re: asp
From: Evertjan. (exjxw.hannivoort_at_interxnl.net)
Date: 06/09/04
- Previous message: Ice Man: "Request of large amount of data"
- In reply to: msnews.microsoft.com: "asp"
- Next in thread: CJM: "Re: asp"
- Reply: CJM: "Re: asp"
- Messages sorted by: [ date ] [ thread ]
Date: 09 Jun 2004 08:17:29 GMT
msnews.microsoft.com wrote on 09 jun 2004 in
microsoft.public.inetserver.asp.general:
> I have two asp pages (A and B) to be run on the same server and from
> the same client.
>
>
> 1. In the page A, a checkbox value (checked or not checked) can be
> recognised in the following code :
>
> If Request.form("CheckBoxName") then ....
>
> However, in the page B, the same code raises a "type mismatch" error,
> and it has to be modified as follows for the codes to run :
>
> If Request.form("CheckBoxName") <> "" then ....
If Request.form("CheckBoxName") then ....
Request.form() always returns a string!
if the string content of CheckBoxName is not litterally true, false or an
empty string an error will be shown.
Change it to:
If lcase(Request.form("CheckBoxName"))="true" then ....
or even better: control your form input.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
- Previous message: Ice Man: "Request of large amount of data"
- In reply to: msnews.microsoft.com: "asp"
- Next in thread: CJM: "Re: asp"
- Reply: CJM: "Re: asp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|