I don’t know whether it’s Resharper and/or Visual Studio 2008 that messes up the auto-formatting of inline ASP.NET tags, but it sucks. I usually start "prettying" it up, but usually give up halfway through, because every time I add anything else, the formatting is shot again. Is it just me? Is there a setting I’m […]
You are at the archive for the asp.net category &rarr
Testing TempData, and Mocking SessionState
About a month and a half ago Ben Scheirman wrote about testing TempData in ASP.NET MVC. It’s good stuff, and aside from changes between Preview 1 and Preview 2, it still works fine. (See Scott Hanselman’s post for some Preview 2-friendly mock helpers using Rhino Mocks.)
While I can easily understand what Ben’s code is doing, […]
Displaying [foo] on every page of an ASP.NET MVC application
Frequently in web applications there’s a requirement like this: “Every page should display [foo].” Where “foo” can be literally anything: a list of favorites, sponsors, news, or whatever - it’s data. In what I’ll call “normal, by a long shot” ASP.NET cases, universally displayed data will probably be encapsulated in a user control and […]
Unifying Web "Sites" and Web Services with the ASP.NET MVC Framework
(For those who’d rather just download the code, the link is at the end.)
Lately I’ve been delving into the ASP.NET MVC framework, the timing of which has been interesting as I am about to finish reading RESTful Web Services by Leonard Richardson and Sam Ruby. It’s an excellent book that I’d highly recommend to anybody […]
Writing web apps for the iPhone
I’ve been working on a web app for the iPhone the last few days. It’s been a little while since I’ve done ASP.NET (I miss it!) so it’s fun to jump back in. I came across iUI - a very well done, lightweight and visually beautiful “mini-framework” for creating web sites that behave just like […]
Creating Comet applications with ASP.NET
Sometimes it’s useful to hijack a particular technology to do something it was never intended to do. Comet does exactly that, and it’s not for the faint of heart. In a nutshell, “Comet-style” applications use features of the HTTP request-response communication model to morph it into a streaming context whereby the server can […]
ASP.NET 2.0 Page Lifecycle
I think just about every single ASP.NET candidate I’ve interviewed knows practically nothing about the page lifecycle, except for “Page_Load” of course—and they always say that: “Page Load”. They never say “Load” which is the actual event name. (That’s being a little picky though.)
Here’s something every web developer should be familiar with—not necessarily memorized (otherwise […]
Debugging ASP.NET
Jim Cheshire has posted a helpful resource (with links to helpful resources) for debugging ASP.NET applications. Not VS.NET debugging, but really debugging.
(link to his blog)
VS 2005 and Web Projects
Here is an indispensable tool for building and deploying Web Projects in Visual Studio 2005.
(on msdn.microsoft.com)
Also, I have run into this sticky situation: I have several projects in my solution (a few class library projects, the website project, and the web deployment project), where one or more class libraries make use of web services. The […]
Database Cache Dependency
Lately I’ve been extending and improving the ASP.NET Portal Starter Kit. One update I really wanted to make was to move the configuration storage from the XML file to our back-end SQL Server database. The only thing that was holding me back was the inability to cache the configuration data. I didn’t want the round-trip […]

