Archive for the ‘asp.net’ Category

Rock the iPhone with ASP.NET MVC

Posted on June 8th, 2008 by aaron
Filed under asp.net, asp.net mvc, iphone | 15 Comments

With much fanfare Apple announced the availability of the iPhone SDK. I downloaded it and someday plan to play around with it, though with the SDK already having gone through 4 or 5 beta releases (each a ~2GB download) I’ll probably wait a long time before cracking it open. However, for web applications the best [...]

Automatic formatting of inline ASP.NET tags

Posted on April 8th, 2008 by aaron
Filed under asp.net | 1 Comment

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 [...]

Testing TempData, and Mocking SessionState

Posted on March 12th, 2008 by aaron
Filed under .net, asp.net, asp.net mvc | Comments Off

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 [...]

Displaying [foo] on every page of an ASP.NET MVC application

Posted on January 26th, 2008 by aaron
Filed under asp.net, asp.net mvc | 14 Comments

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 put [...]

Unifying Web "Sites" and Web Services with the ASP.NET MVC Framework

Posted on January 1st, 2008 by aaron
Filed under asp.net, tools, web services | 29 Comments

(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 [...]

Writing web apps for the iPhone

Posted on October 27th, 2007 by aaron
Filed under asp.net, mac, mobile | 6 Comments

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

Posted on July 8th, 2007 by aaron
Filed under asp.net | 32 Comments

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 essentially push [...]

ASP.NET 2.0 Page Lifecycle

Posted on July 15th, 2006 by aaron
Filed under asp.net | Comments Off

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 [...]

Debugging ASP.NET

Posted on December 20th, 2005 by aaron
Filed under asp.net | Comments Off

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

Posted on November 22nd, 2005 by aaron
Filed under asp.net | Comments Off

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 [...]