Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: ocean10000

Message Too Old, No Replies

Ignore Case .asp

How to set in simple request

     

Marshall

10:55 am on Jun 19, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

11:30 am on Jun 19, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



try StrComp

Marshall

12:30 pm on Jun 19, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Huh? Where, and how, would I put that? FYI, the "instructions" are response.write if it matters.

Marshall

dstiles

8:13 pm on Jun 19, 2013 (gmt 0)

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Force the case using (eg) LCase(text) or use instr (see W3schools for syntax) - if (instr(...)>0) then...

Marshall

8:42 pm on Jun 19, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IF (LCase(Request.ServerVariables("URL")))="url..."
response.write....
END IF

Works perfectly. Thanks :)

Marshall
 

Featured Threads

Hot Threads This Week

Hot Threads This Month