23 posts found
Adding web.config settingsRead more...
I recently ran across this video on Clojure... Very compelling presentation.
I originally thought of lisp as being interpreted.. It's easy to build a simple lisp interpreter.
Clojure, however, is compiled lisp - but still quite as dynamic, and it supports edit-and-continue.Read more...
Will you ever need to pass relative paths to your control? Does your control function as a container for markup? If so, you should subclass Control instead of using a .ascx file.Read more...
Are you guilty of subconsciously regarding 'scripting' languages as inferior? Do you think real programming means using C, C++, C#, or Java? Does your conscience accuse you of laziness when you feel tempted to use a truly high-level language for your app?Read more...
I admit that regular expressions (regexes) are intimidating. I avoided them like a disease for six years. I wasn't quite sure what they did, but seeing stuff like this was enough to make me lose interest quick:
<(?[\\w:-]+)(?\\s+(?\\w[-\\w:]*)
(\\s*=\\s*\"(?[^\"]*)\"|
\\s*=\\s*'(?[^']*)'|
\\s*=\\s*(?<%#.*?%>)|
\\s*=\\s*(?[^\\s=/>]*)|
(?\\s*?)))*
\\s*(?)(?:(?/>)|>
(?s:(?.*?)
(?i:\\s*\\k\\s*>)))
Whenever I did string parsing, I usually ended up with masses of loops and indexOf calls.Read more...
Even if you're still stuck using a non-dynamic language (Java, C#, etc), you can steal a trick or two from the other side. Command chaining is an easy practice that can really simplify your code.
It's easy.Read more...
Installation and configuration instructions for the Image ResizerRead more...
The ability to reference style sheets and scripts from within content pages is greatly needed, but link and meta tags only work in the root master page. Here's how to add full link, meta, and script parsing to your entire application.Read more...
License agreement for the Image ResizerRead more...
Making required changes in web.configRead more...
Server-side image resizing is one of those tiny features that can have incredible ROI. It can save webmasters several hours each day, and gives you the ability to change the resolution of an image without having to hunt up the original.Read more...
ASP.NET is primarily concerned with "virtual paths", the portion of the path following the hostname or port number. When working with ASP.NET, you must understand the following types of URIs thoroughly, and know how they are handled by ASP.NET and the browser.Read more...
Configuring IIS to send image requests to ASP.NETRead more...
Virtual path providers are awesome - you can serve a site from a .zip file, perform XSLT transformations to generate .aspx files as the compiler reads them, and do all sorts of unusual things. However, using them can make the StaticFileHandler buffer entire downloads in memory before sending the data to the client.Read more...
If you are getting a NullReferenceException from RewritePath at ~/, or if image references break when your URLs end in /, you need hotfix 911300.Read more...