web development

.net

Building Mht Files from URLs revisited

I finally finished updating my CodeProject article, Convert any URL to a MHTML archive using native .NET code. It’s based on RFC standard 2557, aka Multipart MIME Message (MHTML web archive). You may also know it as that crazy File, Save As, “Web Archive, Single File” menu option in

By Jeff Atwood ·
Comments

asp.net

Wintellect ASP.NET FAQ

Nothing beats a well constructed FAQ based on lots of real-world questions. It’s a little old, but I was surprised how much genuinely insightful material is present in the Wintellect ASP.NET FAQ. It’s a mixture of the mundane (How do I comment out statements in ASPX files?

By Jeff Atwood ·
Comments

asp.net

Code-Behind vs. Inline Code

After religiously adhering to the new, improved code-behind model of ASP.NET for so long, I have to admit it’s sort of refreshing to rediscover inline code ASPX pages again. Deploying single web pages to a server without recompiling the entire solution? Making localized edits to single pages that

By Jeff Atwood ·
Comments

xpath

Interactive Xpath Expression Builder

I use Xpath queries about once a year, so of course I completely forget the syntax every time I come back to it. And each time this happens, I somehow find Aaron Skonnard’s very cool web-based interactive Xpath Expression Builder, which lets you hack on Xpath with real time

By Jeff Atwood ·
Comments

programming languages

Top Tens

I found two interesting top 10 lists yesterday. From MSDN Magazine, 10 Tips for Writing High-Performance Web Applications, is a fine read. I’ll summarize: 1. Return Multiple Resultsets 2. Paged Data Access 3. Connection Pooling 4. ASP.NET Cache API 5. Per-Request Caching 6. Background Processing 7. Page Output

By Jeff Atwood ·
Comments

asp.net

WebFileManager

I posted a new CodeProject article, WebFileManager: I often deploy ASP.NET websites to servers that I don’t control. In these situations, I can’t get to the underlying filesystem to do any file maintenance, because I don’t have direct access to the server. For various reasons, I

By Jeff Atwood ·
Comments

programming languages

Don’t Devalue the Address Bar

I was reading an interesting entry in Rocky Lhotka’s blog when something in the URL caught my eye: http://www.lhotka.net/WeBlog/PermaLink.aspx?guid=b28971dc-ac4b-4494-8a21-7a5105a39b07 I guess it’s a DasBlog thing, but good lord: a globally unique ID in a blog hyperlink? Has it really come

By Jeff Atwood ·
Comments

.net

Saving URLs to MHTML via .NET

I just posted another CodeProject article, Convert any URL to a MHTML archive using native .NET code. The title is a bit misleading; using my class, you can actually convert any URL to one of four formats in a single line of code: * Web Page, complete (HTML plus files in

By Jeff Atwood ·
Comments

programming languages

The Incredible LinkTron 5000(tm)!

I talked in a previous post about Unbreakable Links – that is, stating every URL in terms of a Google search rather than an absolute address. Great concept, but how do you determine which words on a web page are most likely to generate a unique search result? Well, wonder no

By Jeff Atwood ·
Comments

urls

Building Unbreakable Links

I was reading through some of the DataGrid Girl’s oh-so-cute article links, and I encountered a few dead ones. It’s not really Marcie’s fault; dead links are inevitable on any page as it ages. Such is the nature of absolute links. For example, this one: http://msdn.

By Jeff Atwood ·
Comments