In web development using C#, getting the current page name
e.g --> home.aspx
is very easy...
Try this..
Using System.IO
String _pathName = Path.GetFileName(request.PhysicalPath);
Response.Write(_pathName);
Subscribe to:
Post Comments (Atom)
Beginner of programming
My own simple research
1 comment:
I recommend capitalizing the 'R' on request -
String _pathName = Path.GetFileName(Request.PhysicalPath);
Response.Write(_pathName);
Post a Comment