Forums

ASP

This topic is locked

Request.QueryString letter case

Posted 24 Mar 2002 14:33:53
1
has voted
24 Mar 2002 14:33:53 Talal -- posted:
<b>Hi everyone.

I've been facing a problem with Request.QueryString. How do I make Request.QueryString case-sensetive in ASP 2.0? For example, Request.QuerySring("letter" = "i" would give the same results as Request.QuerySring("letter" = "I" . but I want them to give different results.

How can I do that? Any ideas people?</b>

Replies

Replied 26 Mar 2002 01:07:53
26 Mar 2002 01:07:53 Andrew Watson replied:
Could probably do something with the charachter codes.

Replied 26 Mar 2002 01:33:15
26 Mar 2002 01:33:15 Andrew Watson replied:
Wait a minute...request.querystring IS case sensitive !

take page1 that has 2 links on it one passing i (lowercase) to page2 as a URL parameter and one link passing I (Uppercase) to page2.

page two contains...
<pre id=code><font face=courier size=2 id=code>
&lt;%
If Request.Querystring("letter" = "I" Then
Response.Write "Uppercase"
End If
%&gt;
&lt;%
If Request.Querystring("letter" = "i" Then
Response.Write "Lowercase"
End If
%&gt;
</font id=code></pre id=code>

This returns different results depending on the case.


but still, you could use character codes.

Reply to this topic