Source.axd Reloaded

Published 10 June 04 11:31 AM | despos

It looks like there are a lot of people needing, or just wanting, to access the source code of ASPX files over the local host. The real reason I asked for that has to do with an upcoming aspnetPRO article, where I originally planned to show just that example. I do realize now that I need to think of another example to provide something hopefully useful to most people :-)

Speaking of HTTP handlers (which incidentally is the unsaid topic of that article), I'm more and more pleased with the number of small things you can do with them. And like to congratulate Scott Mitchell for his MSDN article that is already mentioned in the first draft of the article. (Thanks Scott for your post.)

In particular, I love the trick that Scott discusses to add more cross-link protection to images you show off your site.

PS: Instead of just implementing source.axd to show the ASPX source, what if I modify that to show the C# or VB code that ASP.NET creates in debug mode? Any better thoughts? Vote ends today.

 

 

Comments

# Richard (MVP .NET) said on June 10, 2004 05:40 AM:

Or better (in my opinion) with a file (global/directory) acces permission :
In Web.Config (Machine.Config for default ?), allow or not viewing file code.
AND
In aspx file, a new directive allowing or not viewing code.

# Sonu Kapoor said on June 24, 2004 07:43 PM:

I would really like to see how source.axd works. Searching google for source.axd just returns the posts from DinoE and some others who link to DinoE. Does anybody know who it works?

# TrackBack said on June 26, 2004 10:22 AM:
# TrackBack said on June 26, 2004 05:44 PM:

Leave a Comment

(required) 
(required) 
(optional)
(required)