Geeks With Blogs
MightyZot C# Tips and Tricks Nifty tricks and tidbits regarding C# syntax
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

ToolClickManager for Infragistics
Infragistics controls are great for fast and cool UI development. They have controls for toolbars, menus, docking, etc. The Infragistics toolbars and menus are integrated, allowing you to use a single tool for both menus and toolbar buttons. That’s awesome! One thing that has always frustrated me though, is the event model. After setting up your tools, you handle events in one of two ways (that I have found.) Using the most obvious method, you can add a ToolClick handler to the UltraToolbarManager’s ......

Posted On Wednesday, January 9, 2013 4:55 PM

RadioButtons and Lambda Expressions
Radio buttons operate in groups. They are used to present mutually exclusive lists of options. Since I started programming in Windows 20 years ago, I have always been frustrated about how they are implemented. To make them operate as a group, you put your radio buttons in a group box. Conversely, to group radio buttons in HTML, you simply give them all the same name. Radio buttons with the same name or ID in HTML operate as one mutually exclusive group of options. In C#, all your radio buttons must ......

Posted On Wednesday, November 28, 2012 9:31 AM

Copyright © MightyZot | Powered by: