ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

ASP Source Code


Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 300,363 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 1,446 people online right now. Registration is fast and FREE... Join Now!





Get Script File Name

This snippet will retrieve the name of the file that it's inside of for you. I found it at http://www.jeremywadsworth.com/Default.aspx?blogentryid=51

Submitted By: girasquid
Actions:
Rating:
Views: 1,175

Language: ASP

Last Modified: October 17, 2007
Instructions: Insert this piece of code anywhere you want to find out what the name of the page is.

Snippet


  1. <%=System.IO.Path.getFileName(HttpContext.Current.Request.FilePath) %> 

Copy & Paste


Comments


There are currently no comments for this snippet. Be the first to comment!

Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month