Articles : Page 1 of 1
-
Wishful Thinking: Why can't HTML fix Script Attacks at the Source?
Apr 1215The Web can be an evil place, especially if you're a Web Developer blissfully unaware of Cross Site Script Attacks (XSS). Even if you are aware of XSS in all of its insidious forms, it's extremely complex to deal with all the issues if you're taking user input and you're actually allowing users to post raw HTML into an application. I'm dealing with this again today in a Web application where legacy data contains raw HTML that has to be displayed and users ask for the ability to use raw HTML as...
-
ASP.NET MVC Now Accepting Pull Requests
Mar 1229Changing a big organizations is a slow endeavor. But when people are passionate and persistent, change does happen. Three years ago, the ASP.NET MVC source code was released under an open source license. But at the time, the team could not accept any code contributions. In my blog post talking about that release, I said the following (emphasis added): Personally (and this is totally my own opinion), I’d like to reach the point where we could accept patches. There are many hurdles in the w...
-
Writing a Recipe for ASP.NET MVC 4 Developer Preview
Sep 1122NOTE: This blog post covers features in a pre-release product, ASP.NET MVC 4 Developer Preview. You’ll see we call out those two words a lot to cover our butt. The specifics about the feature will change and this post will become out-dated. You’ve been warned. All good recipes call for a significant amount of garlic. Introduction Last week I spoke at the //BUILD conference on building mobile web applications with ASP.NET MVC 4. In the talk, I demonstrated a recipe I wrote that automates...
-
The history of ASP.NET MVC, so far
Jun 1129This post is a mile high overview of the history of ASP.NET MVC, the features it brought with the various versions and the extensibility points introduced. I am starting to work on both a series of webcasts and articles and I was doing some preparatory work, collecting information on the various features and extensibility points that got into the various (official) releases of ASP.NET MVC, so I thought it could have been useful to share my little summary. There have been 3 major official r...
-
ASP.NET MVC and the Managed Extensibility Framewok on NuGet
Feb 1101If you search on my blog, theres a bunch of posts where I talk about ASP.NET MVC and MEF. And whats cool: these posts are the ones that are actually being read quite often. Im not sure about which bloggers actually update their posts like if it was software, but I dont. Old posts are outdated, thats the convention when coming to my blog. However I recently received a on of questions if I could do something with ASP.NET MVC 3 and MEF. I did, and I took things seriously. Im not sure if you kno...
-
Tools for the lazy: Templify and NuGet
Jan 1107In this blog post, I will cover two interesting tools that, when combined, can bring great value and speed at the beginning of any new software project that has to meet standards that are to be re-used for every project. The tools? Templify and NuGet. You know the drill. Starting off with a new project usually consists of boring, repetitive tasks, often enforced by (good!) practices defined by the company you work for (or by yourself for that company). To give you an example of a project Ive...
-
Get all month names from DateTime in C# programatically
Sep 1023I needed to have a drop down list of all the months but I don't want to be writing all of that out. So is there a way to list all the months programmatically in C#. Hell yeah there is I knew there would be a way to do it and I knew it would be something to do with the CultureInfo of the session. Here is a method I wrote to return a set of key values for each month: public IEnumerable<KeyValuePair<int, string>> GetAllMonths() { for (int i = 1; i <= 12; i++) { yield return new KeyValuePair<int...
- 1

