Nov 1, 2007 #1 tester321 Programmer Mar 13, 2007 150 CA Grr.. not working, need help. Many thanks. Code: string url = Request.ServerVariables["URL"]; url = Mid(url, InStrRev(url, "/") + 1); Response.Write("this page is called:"+url);
Grr.. not working, need help. Many thanks. Code: string url = Request.ServerVariables["URL"]; url = Mid(url, InStrRev(url, "/") + 1); Response.Write("this page is called:"+url);
Nov 1, 2007 #2 dseaver IS-IT--Management Jul 13, 2006 467 Code: string url = Request.ServerVariables["URL"]; url = [red]url.Remove(0, url.LastIndexOf("/") + 1)[/red]; Response.Write("this page is called:"+url); Upvote 0 Downvote
Code: string url = Request.ServerVariables["URL"]; url = [red]url.Remove(0, url.LastIndexOf("/") + 1)[/red]; Response.Write("this page is called:"+url);
Nov 1, 2007 Thread starter #3 tester321 Programmer Mar 13, 2007 150 CA found an easier way, but would it more resource intensive? string url = System.IO.Path.GetFileName(Request.Path); Upvote 0 Downvote
found an easier way, but would it more resource intensive? string url = System.IO.Path.GetFileName(Request.Path);