Saturday, December 31, 2011

Html5 Unobtrusive Form Validation for ASP.NET MVC

I have a project that I was able to make use of modern browsers HTML5 form validation. But I wanted to include the validation that also takes place from within aspnet mvc so there is a unified experience with the validating the form. I took the jquery.unobtrusive-validation.js and made some modifications to it to hook in to the aspnet mvc validation. It is not yet 100%, the “Required” aspnet mvc validation doesn’t seem to “trigger” unless the field is filled out, then attempted to be submitted, and then cleared again, but the default html5 “required” validation message still shows initially. Either way, I figured I would share this and maybe someone could build on it and improve it. Enjoy.

Here are some screenshots of the results.

Failed Regex Validation
image 

Failed Minimum String Length Validation
image 

Failed Remote Password Strength Validation
image

Failed Compare to Password Field Validation
image


Download from Skydrive

Wednesday, December 21, 2011

Visual Studio Achievements app for iPhone

mzl.fkogmsgw.170x170-75A friend of mine liked the idea of the VSA app that I wrote for Android and decided to write an iOS version. It uses the exact same web API that the android version uses so it has the same features like the Leaderboard, viewing achievement details, user details, and marking users as a “favorite”. He also created the 9guy logo you see on the right for the iOS app.

The app will be available for free in iTunes once it passes the Apple approval process.

Now we just have to wait for the Channel9 Team to make the Visual Studio Achievements available to the public.

album[4]

Update: The app has been approved by apple and should appear in the app store any time now.

Update 2: You can now get the iOS version of Visual Studio Achievements in iTunes

Sunday, December 4, 2011

Visual Studio Achievements for Android

feature

View Visual Studio Achievements right on your Android de vices. Don’t let those Windows Phone users have all the fun.

  • View current leaderboard standings
  • View user information on all completed and started achievements
  • View information on each achievement

Once the service is fully launched, other features will come. Including the ability to monitor your achievements and progress, search and view other users achievements, and mark users as a favorite and easily monitor their progress to see if they are catching up to your score.

InlineRepresentation2c1e7a5c-b931-43ad-ab11-d27038087c3b[2]

Html5 Unobtrusive Form Validation for ASP.NET MVC

I have a project that I was able to make use of modern browsers HTML5 form validation. But I wanted to include the validation that also takes place from within aspnet mvc so there is a unified experience with the validating the form. I took the jquery.unobtrusive-validation.js and made some modifications to it to hook in to the aspnet mvc validation. It is not yet 100%, the “Required” aspnet mvc validation doesn’t seem to “trigger” unless the field is filled out, then attempted to be submitted, and then cleared again, but the default html5 “required” validation message still shows initially. Either way, I figured I would share this and maybe someone could build on it and improve it. Enjoy.

Here are some screenshots of the results.

Failed Regex Validation
image 

Failed Minimum String Length Validation
image 

Failed Remote Password Strength Validation
image

Failed Compare to Password Field Validation
image


Download from Skydrive

Visual Studio Achievements app for iPhone

mzl.fkogmsgw.170x170-75A friend of mine liked the idea of the VSA app that I wrote for Android and decided to write an iOS version. It uses the exact same web API that the android version uses so it has the same features like the Leaderboard, viewing achievement details, user details, and marking users as a “favorite”. He also created the 9guy logo you see on the right for the iOS app.

The app will be available for free in iTunes once it passes the Apple approval process.

Now we just have to wait for the Channel9 Team to make the Visual Studio Achievements available to the public.

album[4]

Update: The app has been approved by apple and should appear in the app store any time now.

Update 2: You can now get the iOS version of Visual Studio Achievements in iTunes

Visual Studio Achievements for Android

feature

View Visual Studio Achievements right on your Android de vices. Don’t let those Windows Phone users have all the fun.

  • View current leaderboard standings
  • View user information on all completed and started achievements
  • View information on each achievement

Once the service is fully launched, other features will come. Including the ability to monitor your achievements and progress, search and view other users achievements, and mark users as a favorite and easily monitor their progress to see if they are catching up to your score.

InlineRepresentation2c1e7a5c-b931-43ad-ab11-d27038087c3b[2]