摘要:取得ASP.NET檔名不含副檔名
public string GetProgramName() { string FileName = VirtualPathUtility.GetFileName(this.Request.FilePath); string Extension = VirtualPathUtility.GetExtension(this.Request.FilePath); string ProgramName = FileName.Replace(Extension, ""); return ProgramName; }