.Net Treasure
Friday, February 18, 2011
Create Current Page Name
public
string
GetCurrentPageName()
{
string
sPath = System.Web.
HttpContext
.Current.Request.Url.AbsolutePath;
System.IO.
FileInfo
oInfo =
new
System.IO.
FileInfo
(sPath);
string
sRet = oInfo.Name;
return
sRet;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment