So you know how to use the viewport meta tag to control some things about how mobile browsers render your page, you know about media queries and how you can use them to tweak your css for different sizes of monitors, and you know about progressive enhancement, and that everything doesn't actually have to look the same on every browser. Now let's get very practical. Let's say you want to build a website that will work for both desktop and mobile. You can do this easily in some circumstances but in others it can be a harder task. Here are some questions to ask yourself.
Read More on "Markup for Desktop and Mobile" >>
I have always been a "full stack" kind of guy. When I started teaching myself to program back in 2003, I had an app in mind that required a some knowledge of css, databases, and everything in between. At the time I didn't even really know what those were but eventually I figured it out. I'm doing Full Stack Day to help others get started with all the technologies you need to build websites.
Read More on "Full Stack Day" >>
The last few days I have been digging into the Javascript history api and in the process built a jQuery plugin that I figured others
might find useful. It is actually very simple. I will be blogging about the Javascript history api next week and this will be used in those, so you can consider this a teaser as well if you are interested in the topic.
Read More on "Creating an Ajax Content Switcher with jQuery and ASP.NET MVC" >>
There are a few new things that come with new projects build in ASP.NET MVC 4 along with the ones we are used to by now. These tools that you get are delivered via NuGet packages, so let's look at the packages that we already had in ASP.NET MVC 3 that are still in the box in ASP.NET MVC 4 preview.
Read More on "What's In the Box with ASP.NET MVC 4?" >>
Nothing I say here is recommended and it all may end up being a bunch of terrible ideas, but when has that stopped me before? Also, this is built on preview bits, so things are very likely going to change. Now, let's get funky with with the DisplayMode functionality in ASP.NET MVC 4 Preview.
Read More on "Doing Crazy Things with ASP.NET MVC 4's Display Modes" >>
So this is weird for me and a little sad. I've had the same job for five years as of this last August but I'm changing today. This morning in fact. I am not, however, leaving Match. I will now be working under the able leadership of @shanehenderson on Match's mobile team.
Read More on "Different Job, Same Employer" >>
As a developer who wants to be conscious of good client-side practices, I’m always looking for good ways to keep my Css separate from my Html. When there are page-specific css styles to apply, it is often tempting to add them to the page itself. It works, it's not evil but I wouldn’t recommend it. Here’s an easy trick I have used on several projects to make it easy to target page-specific design problems in a global css file without worrying about adversely affecting other pages.
Read More on "Auto Page-Specific Css with ASP.NET MVC" >>
So yesterday morning I finally got around to using AppHarbor. I figured out an app I would like to attempt to deploy there and see what I thought about it after messing around with it for a day or so.
Read More on "24 Hours with AppHarbor" >>
The purpose of a ValueProvider is to provide values from a source of data. There are several types of value providers built into the framework. They pull values from form posts, query strings, route data, posted files and other things. They exist to pull data from various data sources to supply to the model binding system so you can get your values on your action methods. But if you are reading this blog post, you probably already know what value providers are in ASP.NET MVC. So we will move on to getting them hooked up with our StructureMapDependencyResolver.
Read More on "StructureMap, Value Providers and Dependency Injection in ASP.NET MVC 3" >>
As you can tell by now, I’m not one who feels he has to avoid long titles for blog posts. We are continuing our work on exploring our options for dependency injection in ASP.NET MVC 3, with StructureMap as our IoC tool of choice. In our first post we got started with IDependencyResolver, in the second post we setup model binders and in the third we setup non-global action filters. In this post we will discuss global filters and the normal caveat applies: I have seen no clear guidance on this so I am kinda making this up as I go along. It works, but that is about all that I can promise you.
Read More on "StructureMap, Global Action Filters and Dependency Injection in ASP.NET MVC 3" >>
Continuing on from the basics and model binding, and continuing to kinda make it up as I go along, here we will discuss how to hook up action filters with dependency injection using StructureMap and the new dependency injection hooks in ASP.NET MVC 3.
Read More on "StructureMap, Action Filters and Dependency Injection in ASP.NET MVC 3" >>
In our last post we setup the basic dependency resolver infrastructure for StructureMap. Our sample code is still hosted up on Github, so go get if you want to take a look at it. The same caveat to the last discussion still applies: since I know of no samples where StructureMap is used for a full implementation of the IoC hooks in ASP.NET MVC 3, I am kinda making it up as I go along. It is certainly working but time will tell how close my implementation ends up to being awesome. Now that this is out of the way, we need to push on because as is we are in little shape than we were in ASP.NET MVC 2 in terms of IoC support. So let’s start with getting dependency injection going for model binders.
Read More on "StructureMap, Model Binders and Dependency Injection in ASP.NET MVC 3" >>
I have become a big fan of the principle of dependency inversion over the last couple years. My tool of choice is StructureMap though I use Unity at work. It actually matters little which you use if you choose to use an IoC library. Much more important is your understanding of the principle and using that to make your software better. But this post is not here to discuss the meanings of these terms; its point is simple: How do you hook up StructureMap to ASP.NET MVC 3’s new IoC hooks?
Read More on "StructureMap and ASP.NET MVC 3 – Getting Started" >>
It is that time of year again. Not, not Thanksgiving. That was last week. And not Christmas because that’s a few weeks from now. Of course it is International Blue Beanie day in support of web standards, but that’s not what I’m talking about. It’s blog redesign announcement day!
Read More on "Yet Another Redesign" >>
So I've had validation in MVC 2 on the brain for the last few days. I've posted on it a few times over at http://www.howmvcworks.net, here, here and here. I came up with another idea last night. Just now I tried it out and liked it. Thought I would see what the world thinks.
Read More on "A Thought on Validation For ASP.NET MVC 2" >>
Time to get this new year started! Today I am starting a new series on http://www.howmvcworks.net on models, view models and related issues. I few weeks ago I asked for suggestions on tutorials and both @jasona and @samdelagarza suggested material around validation and model binding. This series will cover both topics and more. If anyone has suggestions or requests, please let me know.
Read More on "New Series on HowMVCWorks" >>
Yesterday I was fortunate enough to do C4MVC's virtual presentation. It was my first virtual presentation and that's definitely a different experience, though still fun.
Read More on "Pimpin' Out ASP.NET MVC's HtmlHelper" >>
The slides for my presentation at the North Dallas .NET User Group (and for the Houston Tech Fest meeting...though they have changed slightly) are now posted and you can find them here.
Read More on "MVC UI Extensibility Slides Posted" >>
Read More on "UI Extensibility Techniques with ASP.NET MVC Ajax and jQuery" >>
I just posted a few new tutorials on ASP.NET MVC.
Read More on "New ASP.NET MVC Ajax Tutorials" >>
This announcement by Bertrand Le Roy on some new Ajax Control Toolkit controls was a nice bit of news to me the other day. One thing I was looking for was a new Html editor...great timing! Tonight I set out to implement it in one of my MVC projects.
Read More on "On Using the New Ajax Control Toolkit Html Editor" >>
Because I don't have enough to do, I just launched a new site called How ASP.NET MVC Works.
Read More on "New Site for ASP.NET MVC: How MVC Works" >>
I haven't tried upgrading an existing site yet, but new website creation works well. The only thing I've seen so far is that if you create a unit test project to go with your web app it won't compile. Luckily, all you have to do is include the proper namespace reference to your controllers at the top.
Read More on "ASP.NET MVC RC Available!" >>