Saturday, December 21, 2013

Custom Model Validation Provider for enabling ASP.NET MVC 3 client side validation.

Implementing Custom Model Validation Provider to enable client side MVC 3 validation  The Validation framework of ASP.NET MVC 3 is designed for extensibility and customization.  It supports validation model using attributes, or by implementing IValidatableObject or unobtrusive javascript...

Saturday, December 14, 2013

Generic TryParse handler for generic .Net Lists

Following C# code sample is a Generic TryParse handler for generic value type  lists in .Net. Any character delimited list can be split and use safe TryParse against split list  to ensure you have valid data. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenericTryParsehandler { /// <summary> ...

10 Practical ASP.Net MVC 4 Interview Questions

10  Practical ASP.Net MVC 4 Interview Questions: 1)  Do you think following is valid route definition for ASP.NET MVC solution? Answer: YES. Variable length routes are valid. This route will match any URL, irrespective of number of placeholders it contains. _________________________________________________________________________________ 2)...

Sunday, December 8, 2013

Automated asp.net web application testing using Selenium

ASP.Net Web Application Integration testing using Selenium 2.0 Selenium primarily used for automating web applications for testing purposes. You can create browser based regression tests using Selenium WebDriver.  Selenium WebDriver provides a concise programming interface. It drives...