vb Using InStr to determine page

If InStr(lcase(Request.ServerVariables("Script_Name")),"default.asp") = 0 Then
	'do stuff
End If
Checks to see if the scriptname (url) contains default.asp - returns a number with the position, so if it isn't in the url then it will return 0.

Updated: Monday 4th October 2010, 09:05pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.