ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Home
Forums
Programming
Web Development
Tutorials
Snippets
Blogs
Freelance
Jobs
Lounge
Login
Join for Free!
Programming Help
C and C++
VB6
Java
VB.NET
C#
ASP.NET
PHP
ColdFusion
Perl and Python
Ruby
Databases
Other Languages
Game Programming
Mobile Development
Software Development
Computer Science
Industry News
Web Development
Web Development
HTML & CSS
JavaScript
Graphic Design
Flash & ActionScript
Blogging
SEO & Advertising
Web Servers & Hosting
Site Check
What's Here?
Members:
300,363
Replies:
825,875
Topics:
137,432
Snippets:
4,419
Tutorials:
1,147
Total Online:
1,446
Members:
99
Guests:
1,347
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!
Chat
LIVE
With a ASP.NET Expert
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:
0
1
2
3
4
5
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
<%
=System.
IO
.
Path
.
getFileName
(
HttpContext.
Current
.
Request
.
FilePath
)
%>
Copy & Paste
<%=System.IO.Path.getFileName(HttpContext.Current.Request.FilePath) %>
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.
Advertising
|
Terms of Use
|
Privacy Policy
|
About Us
|
Site Map
Forum Index:
Programming Help
|
C and C++
|
VB6
|
Java
|
VB.NET
|
C#
|
ASP.NET
|
PHP
|
ColdFusion
|
Perl and Python
|
Ruby
|
Databases
|
Other Languages
|
Game Programming
|
Mobile Development
|
Software Development
|
Computer Science
|
Industry News
|
Programming Tutorials
|
C++ Tutorials
|
Visual Basic Tutorials
|
Java Tutorials
|
VB.NET Tutorials
|
C# Tutorials
|
Linux Tutorials
|
PHP Tutorials
|
ColdFusion Tutorials
|
Windows Tutorials
|
HTML/JavaScript Tutorials
|
CSS Tutorials
|
Flash Tutorials
|
Web Promotion Tutorials
|
Graphic Design & Photoshop Tutorials
|
Software Development Tutorials
|
Database Tutorials
|
Other Language Tutorials
|
ASP.NET Tutorials
|
Game Programming Tutorials
|
WPF & Silverlight Tutorials
|
Copyright 2001-2008
MediaGroup1 LLC
, All Rights Reserved
A
MediaGroup1 LLC
Production - Version 6.0.2.1.36
Server: secure2
Search
Updated!
w00t
Over 509,000 Pages!
Advanced Forum Search
Live ASP.NET Help!
Be Social
ASP.NET Tutorials
Base Page For Detecting Session Timeout in ASP.Net/C#
Introduction To Master Pages in ASP.Net
Using XML To Share Constants Across Multiple Web Applications in C#
Guarding Against Session Hijacking in ASP.NET
Using the Standard Controls - ASP.net/C#
Creating a "Bad Word Filter" functionality in ASP.NET w/C#
Working with images via HttpHandlers
ASP.Net Menu with XML DataSource
Secure Login Page
ASP.Net - AJAX with Continuous Progress Bar
5 More ASP.NET Tutorials...
Reference Sheets
ASP.NET Snippets
ASP Calendar Month view
Asp Calendar
Use WMI to retrieve CPU ID in VBScript
Downloading (pushing) large files
LeftPad
Check for valid HttpRequest
Accessing web.config connection strings with VB
Get Script File Name
LogEvent
Some "missing" logic functions
10 More ASP.NET Snippets...
DIC Chatroom
Join our IRC Chat
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
erik.price
(200)
macosxnerd101
(100)
Anarion
(50)
Sethro117
(50)
ImaSexy
(50)
syfran
(50)
rishabhsharma
(50)
balasurfs
(50)
DangerD
(25)
japanir
(25)