(Stephen Walther) In this tip, I demonstrate how to take advantage of the validators from the System.ComponentModel.DataAnnotations namespace in an MVC application. You can take advantage of these validators to validate form data before submitting the form data into a database.
Tag: Development
ASP.NET MVC UpdateModel and TryUpdateModel for DataBinding
(David Hayden) ASP.NET MVC has some really nice helpers for databinding and validation that can assist one with a lot of the simple scenarios. I mentioned custom model binders and the ComplexModelBinder, but one can also explicitly call UpdateModel and TryUpdateModel on your controllers to populate
ASP.NET MVC Tip #42 Use the Validation Application Block
(Stephen Walther) In this tip, I demonstrate how you can use the Microsoft Enterprise Validation Application Block within an MVC application to perform both basic and advanced form validation. The Validation Application Block supports a rich set of validators that you can begin using in an ASP.NET M
Windows Presentation Foundation: Flow Documents (Part 2)
(Ged Mead) In the previous part, we looked at inserting a XAML FlowDocument into a WPF RichTextBox.
Editing .NET Configuration Files Programatically
(John Peterson) These days, many .NET developers are taking advantage of the fact that you can quite easily store many of an application’s settings in .NET configuration files instead of hard coding them into the application’s code. What surprises me is that most of these developers don’t even reali
Windows Forms DataGridView Control in VS 2008
(Raj Beniwal) The DataGridView control provides a powerful and flexible way to display data in a tabular format. You can use the DataGridView control to show read-only views of a small amount of data, or you can scale it to show editable views of very large sets of data.
Nested GridView with TreeView Like Structure
(AzamSharp) Displaying hierarchical data is a common feature practiced by many websites. Hierarchical data can be displayed in many different ways. In this article we will learn how to display nested data using nested GridView controls.
.NET Tip: Determining the Type of a Character Variable
(Jay Miller) How do you determine what type a character variable holds? Is it a number, a letter, a punctuation mark, or somthing else? One answer is to take advantage of the built-in static methods of the System.Char data type directly. You could use Char.IsDigit(), for example, to determine whethe
Quick Debugging Tip: Disable apppool recyling while getting crash dumps
(Tess Ferrandez) I have probably mentioned this before, but I think it is worth mentioning again because of the frequency of this issue.
ASP.NET MVC Tip #41 Create Cascading Dropdown Lists with Ajax
(Stephen Walther) In this tip, I demonstrate three methods of creating cascading drop down lists in an MVC application. First, I demonstrate how to write JavaScript code to update one dropdown list when another dropdown list changes. Next, I show you how you can retrieve the data for the dropdown li
