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
5:18 pm Apr 28, 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
,
Mar
,
Feb
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
April 2026 Google Search Observations
Hello again, it's been a while
AdSense Earnings and Observations - April 2026
Do you get tired of others copying your content?
5 SEO Tips That Actually Worked for My Blog in 2026
I need some SEO help
iPhone Safari 26.4.1 errors: IPv4 & Host
2025 Link Building Trends and Insights
Does SEO matter any more?
SEO question
Home
Forums Index
Server Side
/
Microsoft IIS Web Server and ASP.NET
5:18 pm Apr 28, 2026