Find folder name

I want to find if user is in site where foldername is  webgatewayCa as seen below

mysite.com/WebgatewayCa/OMCsWelcome.aspx
WiggingAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
You can use IO.Path.GetDirectoryName function in combination with Server.MapPath and Request.url

http://msdn.microsoft.com/en-us/library/system.io.path.getdirectoryname.aspx
0
All Courses

From novice to tech pro — start learning today.