Geeks With Blogs
MightyZot ASP.NET Stuff learned while using ASP.NET
Implementing RoleManager in ASP.NET MVC 5
There is something great included in ASP.NET MVC 5 that seems underutilized except by the ASP.NET MVC team. The rest of us seem to be ignoring it, which is apparent when looking at the solutions on StackOverflow (and blogs) for questions like “how do I use roles with ASP.NET MVC 5?” When I look at how identity is implemented in mvc, what stands out is the dependency injection. And, that dependency injection appears to be missing in the answers to how to implement roles. Dependency is a great tool, ......

Posted On Sunday, December 28, 2014 6:42 PM

Responsive Inline Elements with Twitter Bootstrap
Twitter Boostrap is a responsive css platform created by some dudes affiliated with Twitter and since supported and maintained by an open source following. I absolutely love the new version of this css toolkit. They rebuilt it with a mobile first strategy and it’s very easy to layout pages once you get the hang of it. Using a css / javascript framework like bootstrap is certainly much easier than coding your layout by hand. And, you get a “leg up” when it comes to adding responsive features to your ......

Posted On Tuesday, November 12, 2013 12:08 PM

Html.ValidationSummary and Multiple Forms
The Html.ValidationSummary helper writes a div with a list of general errors added to the model state while a request is being serviced. There is generally one form per view or partial view, I think, so often there is only one call to Html.ValidationSummary in the page resulting from the assembly of your views. And, consequently, there is no problem with the markup that Html.ValidationSummary spits out as a result. What if you want to put multiple forms in one view? Even if you create a view model ......

Posted On Monday, November 11, 2013 4:43 PM

JavaScript JSON Error While Tabbing in ASP.NET MVC
I sometimes don’t care about validation for a specific control. The RememberMe control in the login form, for example, really doesn’t need validation, so I forget to include the Html.ValidationMessageFor helper line for that control in particular. As a result, when I’m debugging using IE, I get a silly JSON parsing exception when changing focus from one field to another. The exception doesn’t hurt anything, as far as I know, but it’s just plain annoying. If you’re getting this error, and you don’t ......

Posted On Monday, November 11, 2013 4:11 PM

Copyright © MightyZot | Powered by: