string path = Request.ServerVariables["SCRIPT_NAME"]; //获取URL地址 string[] arr_path = path.Split("/".ToCharArray()); Response.Write(arr_path[arr_path.Length - 1]);
转载于:https://www.cnblogs.com/Setme/archive/2012/06/05/2537042.html
string path = Request.ServerVariables["SCRIPT_NAME"]; //获取URL地址 string[] arr_path = path.Split("/".ToCharArray()); Response.Write(arr_path[arr_path.Length - 1]);
转载于:https://www.cnblogs.com/Setme/archive/2012/06/05/2537042.html