Results 1 to 1 of 1
Thread: Get Current File Name - ASP .Net
-
07-19-2010, 01:44 PM #1
- Join Date
- Apr 2008
- Location
- Boston, MA
- Posts
- 13,232
- Thanks
- 745
- Thanked 729 Times in 564 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
Get Current File Name - ASP .Net
How to Get Current File Name - ASP .Net
If you need to know the current file name user is on you can use this code
This example code is in C#
Code:string absPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo finfo = new System.IO.FileInfo(absPath); string fileName = finfo.Name;Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
Similar Threads
-
Last Day of Previous, Current, Or Next Month - MS SQL
By mastermind in forum DatabasesReplies: 0Last Post: 03-23-2010, 04:40 PM -
How to find a pdf file is normal file or shared review file
By sunshine in forum JavaScript & AJAXReplies: 0Last Post: 01-04-2010, 11:21 AM -
At your current age: What are you starting to lose?
By Efsane 66 in forum General TalkReplies: 7Last Post: 02-06-2009, 04:34 AM -
WTS: Current Weather Conditions and Forecast
By MaskedSuperstar in forum WebsitesReplies: 3Last Post: 01-31-2009, 02:15 PM -
Selling a link on my current biz blog.
By wujijiangjun in forum LinksReplies: 1Last Post: 06-09-2008, 09:37 AM



Reply With Quote

