Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Is varaible name case sensitive?

Reply
Thread Tools

Is varaible name case sensitive?

 
 
Hang
Guest
Posts: n/a
 
      07-09-2003
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
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      07-09-2003
jscript yes, vbscript no.

Ray at home

"Hang" <(E-Mail Removed)> wrote in message
news:00c401c345cc$677b13b0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      07-09-2003
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" <(E-Mail Removed)> wrote in message
news:00c401c345cc$677b13b0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
Hang
Guest
Posts: n/a
 
      07-10-2003
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" <(E-Mail Removed)> wrote in message
>news:00c401c345cc$677b13b0$(E-Mail Removed)...
>> 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

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display varaible on LCD jhduplessis VHDL 0 11-07-2007 07:51 AM
adding a variable name to a hash to name is part of the variable name Bobby Chamness Perl 2 04-22-2007 09:54 PM
Add Session varaible in an ordinary class RonL ASP .Net 1 04-02-2006 01:01 AM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments