Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Microsoft IIS Web Server and ASP.NET
12:38 am May 21, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
Ignore Case .asp
How to set in simple request
Marshall
Msg#:4585669
10:55 am on Jun 19, 2013
(gmt 0)
I have a fundamental understanding of .asp and am trying to get this to ignore case:
IF Request.ServerVariables("URL")="/blah-blah.asp" THEN
instructions....
END IF
Is there a simple way of doing it? Any help would be appreciated.
Marshall
phranque
Msg#:4585686
11:30 am on Jun 19, 2013
(gmt 0)
try StrComp
Marshall
Msg#:4585707
12:30 pm on Jun 19, 2013
(gmt 0)
Huh? Where, and how, would I put that? FYI, the "instructions" are response.write if it matters.
Marshall
dstiles
Msg#:4585868
8:13 pm on Jun 19, 2013
(gmt 0)
Force the case using (eg) LCase(text) or use instr (see W3schools for syntax) - if (instr(...)>0) then...
Marshall
Msg#:4585878
8:42 pm on Jun 19, 2013
(gmt 0)
IF (LCase(Request.ServerVariables("URL")))="url..."
response.write....
END IF
Works perfectly. Thanks :)
Marshall
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
AI visibility audit
Hacker spoofing as GoogleBot
Adsense / Personal Manager / Support
Page indexed but live url test gets 500 error
Link collaboration strategies
in case you missed it .
Bad actor claiming to be OpenAi
Microsoft, AS8075. Google, AS396982.
Home
Forums Index
Server Side
/
Microsoft IIS Web Server and ASP.NET
12:38 am May 21, 2026