Hi,
Sorry if this seems simple but I don't seem to be able to find it anywhere.
I want to find out if the word "LoginRegister" exists within the current page URL. Basically this is so that one of my controls can act differently if it is used on a particular page and "LoginRegister" is the name of the folder that page would be in.
so far I have the line
Dim CurrentUrl = Request.ServerVariables("SCRIPT_NAME")
which is fine but I cant seem to find what in my head should be a simple string function.
I'd appreciate some help,
thanks,
NK
Sorry if this seems simple but I don't seem to be able to find it anywhere.
I want to find out if the word "LoginRegister" exists within the current page URL. Basically this is so that one of my controls can act differently if it is used on a particular page and "LoginRegister" is the name of the folder that page would be in.
so far I have the line
Dim CurrentUrl = Request.ServerVariables("SCRIPT_NAME")
which is fine but I cant seem to find what in my head should be a simple string function.
I'd appreciate some help,
thanks,
NK