You are at the archive for the asp.net mvc category &rarr


Testing TempData, and Mocking SessionState

Posted March 12th @ 8:07 pm by aaron

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

Posted January 26th @ 11:15 am by aaron

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

Options:

Size

Colors