Re: asp

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Evertjan. (exjxw.hannivoort_at_interxnl.net)
Date: 06/09/04

  • Next message: CJM: "Re: asp"
    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)
    

  • Next message: CJM: "Re: asp"

    Relevant Pages

    • Previously Functioning Date Interpreter Now Failing
      ... Dim Entry As String ... Dim Result As String ... Dim ClientElement As Variant 'Holds the extracted Client Number ... ElseIf IsNumeric= False _ ...
      (microsoft.public.excel.programming)
    • RE: Previously Functioning Date Interpreter Now Failing
      ... Dim Entry As String ... Dim Result As String ... Dim ClientElement As Variant 'Holds the extracted Client Number ... ElseIf IsNumeric= False _ ...
      (microsoft.public.excel.programming)
    • Re: Threading a server
      ... I am getting myself into a really big hole with this and the client is a little upset. ... private TcpListener tcpListener; ... private string CurrentCommand ... public string ExpectedSubject ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: WSE2005: Protection requirements in MutualCertificate11Asserti
      ... error when there is a algorithm mismatch between the client and the ... The Web service is using different security requeriments. ... my client, the response page is a browser page ... message, String messageContentType) ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • RE: SoapHttpClientProtocol request canceled
      ... Since this is only happening on the VB client, is there any chance that the ... The VB.NET exe and the VB6 exe both use VB.NET dll to sent request/response ... > inputHeaderer, String messageControlPayload, string inputMessage) ... > Imports System.ComponentModel ...
      (microsoft.public.dotnet.framework.webservices)