Is varaible name case sensitive?

Discussion in 'ASP General' started by Hang, Jul 9, 2003.

  1. Hang

    Hang Guest

    Hi all,

    I have wrote a ASP page:
    *********************************************
    <%@ LANGUAGE="JSCRIPT" %>
    <%

    var pricelist = "a";

    Response.write(concat_str());

    %>

    <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
    function concat_str()
    priceList = priceList & "b"
    concat_str = priceList
    end function
    </Script>
    ********************************************

    When I run this page on IIS4.0/NT, it returns "a"
    However, when I run this page on IIS5.0/Win2000, it
    returns "ab"!!

    Does anyone know why? Is there any documentation on
    Microsoft could help?

    Thank you.

    Hang
     
    Hang, Jul 9, 2003
    #1
    1. Advertising

  2. Hang

    Ray at Guest

    jscript yes, vbscript no.

    Ray at home

    "Hang" <> wrote in message
    news:00c401c345cc$677b13b0$...
    > Hi all,
    >
    > I have wrote a ASP page:
    > *********************************************
    > <%@ LANGUAGE="JSCRIPT" %>
    > <%
    >
    > var pricelist = "a";
    >
    > Response.write(concat_str());
    >
    > %>
    >
    > <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
    > function concat_str()
    > priceList = priceList & "b"
    > concat_str = priceList
    > end function
    > </Script>
    > ********************************************
    >
    > When I run this page on IIS4.0/NT, it returns "a"
    > However, when I run this page on IIS5.0/Win2000, it
    > returns "ab"!!
    >
    > Does anyone know why? Is there any documentation on
    > Microsoft could help?
    >
    > Thank you.
    >
    > Hang
     
    Ray at, Jul 9, 2003
    #2
    1. Advertising

  3. Is one server set up for a default of JScript, and the other VBScript? (See
    the last paragraph: www.aspfaq.com/2045)

    JScript *is* case sensitive, but I'd be surprised if that's what's happening
    here.





    "Hang" <> wrote in message
    news:00c401c345cc$677b13b0$...
    > Hi all,
    >
    > I have wrote a ASP page:
    > *********************************************
    > <%@ LANGUAGE="JSCRIPT" %>
    > <%
    >
    > var pricelist = "a";
    >
    > Response.write(concat_str());
    >
    > %>
    >
    > <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
    > function concat_str()
    > priceList = priceList & "b"
    > concat_str = priceList
    > end function
    > </Script>
    > ********************************************
    >
    > When I run this page on IIS4.0/NT, it returns "a"
    > However, when I run this page on IIS5.0/Win2000, it
    > returns "ab"!!
    >
    > Does anyone know why? Is there any documentation on
    > Microsoft could help?
    >
    > Thank you.
    >
    > Hang
     
    Aaron Bertrand [MVP], Jul 9, 2003
    #3
  4. Hang

    Hang Guest

    OK. But any clues why the page return differently under
    IIS4.0/NT and IIS5.0/Win2000?

    Thank you.

    >-----Original Message-----
    >jscript yes, vbscript no.
    >
    >Ray at home
    >
    >"Hang" <> wrote in message
    >news:00c401c345cc$677b13b0$...
    >> Hi all,
    >>
    >> I have wrote a ASP page:
    >> *********************************************
    >> <%@ LANGUAGE="JSCRIPT" %>
    >> <%
    >>
    >> var pricelist = "a";
    >>
    >> Response.write(concat_str());
    >>
    >> %>
    >>
    >> <SCRIPT RUNAT=SERVER LANGUAGE="VBScript">
    >> function concat_str()
    >> priceList = priceList & "b"
    >> concat_str = priceList
    >> end function
    >> </Script>
    >> ********************************************
    >>
    >> When I run this page on IIS4.0/NT, it returns "a"
    >> However, when I run this page on IIS5.0/Win2000, it
    >> returns "ab"!!
    >>
    >> Does anyone know why? Is there any documentation on
    >> Microsoft could help?
    >>
    >> Thank you.
    >>
    >> Hang

    >
    >
    >.
    >
     
    Hang, Jul 10, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boban Dragojlovic

    DropDownList values are case sensitive?

    Boban Dragojlovic, Nov 6, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    2,259
    Boban Dragojlovic
    Nov 6, 2003
  2. RonL
    Replies:
    1
    Views:
    1,477
  3. Replies:
    1
    Views:
    2,505
    Mark P
    Apr 6, 2007
  4. jhduplessis

    Display varaible on LCD

    jhduplessis, Nov 7, 2007, in forum: VHDL
    Replies:
    0
    Views:
    576
    jhduplessis
    Nov 7, 2007
  5. Xah Lee
    Replies:
    4
    Views:
    1,004
Loading...

Share This Page