Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • Enterprise Library Validation – Custom Validators

    In this post I am going to create a custom email validator that will integrate with the Enterprise Library Validation Application Block. My goal here is to be able to use an [EmailValidator] attribute on any property of any class and have it do the expected email format validation through Enterprise...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-01-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, Enterprise Library
  • Using xVal with NHibernate Validator 1.2

    This will be a quick and dirty post about how to get xVal 1.0 ( http://xval.codeplex.com/ ) to work with the new NHibernate Validator 1.2beta ( http://nhforge.org/media/p/7.aspx ). The problem is that xVal 1.0 ships with a NHibernate Validator (NHVal) Ruleset Provider which does not compile against the...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-29-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC
  • Required Validator For NHibernate Validators

    I’ve recently switched from the Enterprise Library Validation Application Block to using NHibernate Validators. If you are not familiar with the NHibernate Validator project, they are part of the NHibernate Contrib project and offer Validation constraints, and validation runner, and tight integration...
    Posted to Scott's Blog (Weblog) by srkirkland on 10-15-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC, xVal
  • An xVal Provider For NHibernate Validator

    I wrote a post about a month ago about using xVal with NHibernate Validator 1.2 which solved a problem I was having upgrading the xVal ‘in-the-box’ provider to work with a newer version of NHibernate Validator . There was a caveat that my solution only worked for ValidatorMode.UseAttribute and I wouldn...
    Posted to Scott's Blog (Weblog) by srkirkland on 11-02-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC, jQuery
  • NHibernate Validator ASP.NET MVC 2 Model Validation

    ASP.NET MVC2 will improve the built in Model Validation in a number of ways, including the addition of client side validation (ala xVal). If you would like more information on Model Validation in ASP.NET MVC 2, see Scott Gu’s detailed post on this subject . Out of the box ASP.NET MVC 2 will include support...
    Posted to Scott's Blog (Weblog) by srkirkland on 03-02-2010, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC
  • Guarding against CSRF Attacks in ASP.NET MVC2

    Alongside XSS (Cross Site Scripting) and SQL Injection, Cross-site Request Forgery (CSRF) attacks represent the three most common and dangerous vulnerabilities to common web applications today. CSRF attacks are probably the least well known but they are relatively easy to exploit and extremely and increasingly...
    Posted to Scott's Blog (Weblog) by srkirkland on 04-14-2010, 12:00 AM
    Filed under: Code, ASP.NET, Validation, ASP.NET MVC, MVC
  • NHibernate Client Validator ASP.NET MVC 2 Model Validation

    ASP.NET MVC 2 improves Model Validation in a number of ways, including the addition of client side validation (ala xVal).  If you would like more information on Model Validation in ASP.NET MVC 2, see Scott Gu’s detailed post on this subject .  Out of the box ASP.NET MVC 2 includes support for...
    Posted to Scott's Blog (Weblog) by srkirkland on 07-20-2010, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC
  • Adding Client Validation To DataAnnotations DataType Attribute

    The System.ComponentModel.DataAnnotations namespace contains a validation attribute called DataTypeAttribute, which takes an enum specifying what data type the given property conforms to.  Here are a few quick examples: public class DataTypeEntity { [DataType(DataType.Date)] public DateTime DateTime...
    Posted to Scott's Blog (Weblog) by srkirkland on 02-15-2011, 12:00 AM
    Filed under: Code, ASP.NET, Visual Studio, Validation, ASP.NET MVC, MVC, jQuery
  • Introducing Data Annotations Extensions

    Validation of user input is integral to building a modern web application, and ASP.NET MVC offers us a way to enforce business rules on both the client and server using Model Validation.  The recent release of ASP.NET MVC 3 has improved these offerings on the client side by introducing an unobtrusive...
    Posted to Scott's Blog (Weblog) by srkirkland on 02-23-2011, 12:00 AM
    Filed under: ASP.NET, ASP.NET MVC, Code, Data Annotations, jQuery, MVC, Tips, Validation, Visual Studio
  • Adding Unobtrusive Validation To MVCContrib Fluent Html

    ASP.NET MVC 3 includes a new unobtrusive validation strategy that utilizes HTML5 data-* attributes to decorate form elements.  Using a combination of jQuery validation and an unobtrusive validation adapter script that comes with MVC 3, those attributes are then turned into client side validation...
    Posted to Scott's Blog (Weblog) by srkirkland on 03-08-2011, 12:00 AM
    Filed under: Code, ASP.NET, Validation, ASP.NET MVC, MVC, jQuery, Data Annotations, MvcContrib
Page 1 of 1 (10 items)