Articles : Page 1 of 1
- Filter:
- EntityFramework
- Bitbucket
-
Calling ASP.NET MVC Action Methods from JavaScript
Aug 1119In a recent blog post, I wrote a a controller inspector to demonstrate Controller and Action Descriptors. In this blog post, I apply that knowledge to build something more useful. One pain point when you write Ajax heavy applications using ASP.NET MVC is managing the URLs that Routing generates on the server. These URLs aren’t accessible from code in a static JavaScript file. There are techniques to mitigate this: Generate the URLs in the view and pass them into the JavaScript API. This ...
-
Model Metadata and Validation Localization using Conventions
Jul 1114By default, ASP.NET MVC leverages Data Annotations to provide validation. The approach is easy to get started with and allows the validation applied on the server to “float” to the client without any extra work. However, once you get localization involved, using Data Annotations can really clutter your models. For example, the following is a simple model class with two properties. public class Character { public string FirstName { get; set; } public string LastName { get; set; } } Noth...
-
NuGet for the Enterprise: NuGet in a Continuous Integration Automated Build System
May 1125I had the pleasure of speaking at TechEd 2011 North America last week in Atlanta. You can see ALL the videos of all the sessions on Channel 9. As an aside, you might notice that they are in the process of organizing video archives of ALL Microsoft developer events at http://channel9.msdn.com/Events. You can even see PDC 1999 if you like or see sessions by Speaker at http://channel9.msdn.com/Events/Speakers. Here are all my talks with a horrible headshot that I plan on asking Duncan to swap ou...
-
Making Let Me Bing That For You Open Source
May 1112Almost two years ago, I announced the launch of http://letmebingthatforyou.com/, a blatant and obvious rip-off of the Let me Google that for you website. The initial site was created by Maarten Balliauw and Juliën Hanssens in response to a call for help I made. It was just something we did for fun. I’ve been maintaining the site privately always intending to spend some time to refresh the code and open source it. Just recently, I upgraded the site to ASP.NET MVC 3, refactored a bunch of co...
-
Meme Helper for ASP.Net WebPages
Apr 1101We’re working hard on the next versions of ASP.Net WebPages, MVC and Razor, but in the mean time, we wanted to preview some of the work we’re doing for the next version. So, I’m releasing one of the new helpers we’re working on as an early preview via NuGet. Have you ever felt that your site was missing an important aspect of web culture? Like an image of a cat, or an embedded 1980s music video? That’s what we’re hoping to solve with this new helper for ASP.Net WebPages. The Meme Helper is...
-
NuGet + PowerShell = (also) Crazy Delicious
Feb 1111First off, I should note that I'm kinda paraphrasing this title from Scott Hanselman's excellent PDC 2010 talk, but I'm sure he's ok with that. By now, if you've been following the news coming out of the Microsoft Web Platform and Tools team, you've probably heard about our latest open-source project: NuGet. I'll let Scott Guthrie fill you in if you haven't heard about it already. Well, since shipping Web Pages v1/MVC v3, we've been working on general clean-up of both our code and our processe...
- 1

