About these ads

Unobtrusive Client and Server Side Not Equal To Validation in MVC using Custom Data Annotations

Yesterday we discussed about Unobtrusive Client and Server Side Age Validation now let’s do a not equal to validator which is basically the opposite of the Compare validator. 

So where can this be useful?

If you don’t want two items to have the same value then this is your solution.  Lets say you don’t want to have same answers on two different text boxes or you don’t want two same selections on dropdowns.  One practical application is in Secret Question forms on sign up like the one below Read more of this post

About these ads

Unobtrusive Client and Server Side Age Validation in MVC using Custom Data Annotations

One of the best things with MVC is the built-in validation using Data Annotations, these special attributes are simply applied to a class or its property and validation simply just happens on both Client and Server side (taking into consideration you set yours up properly). There are lots of Data Annotations built in that you can use and the most popular ones are the Required, Range and Data Type Attributes but sometimes these are not enough so we need something more usable that fits well with our business logic. Good thing we can create our own custom validation by overriding methods in the Validation Attribute class as well as with IClientValidatable. Read more of this post

Enabling ASP.Net MVC client validation for Kendo UI components

You might have stumbled upon this page because you are getting crazy in trying out all sort of solutions to make the client validation work for your Kendo components such as DropDownListForDatePickerForComboBoxFor, etc. You might have tried several suggestions you saw online like setting the validator defaults in your JavaScript like the samples below
Read more of this post

Adding cultures to Kendo UI Project

You might have encountered an issue where your application is triggering a validation on a date field which says “The field YourDate must be a date.” like the image below.

Read more of this post

Using Kendo UI 2013.2 with S#arp Architecture 2.1.2

More than half a year ago I posted a similar guide but since then S#arp and Kendo upgraded so those articles will not be helpful for this new versions as there are some changes in both Frameworks.  So here I am again creating this guide for this newer versions.

Like what I had said before we have been using S#arp Architecture for quite sometime now and it proved to be a good platform for some of the enterprise applications we developed in-house for our company, but lately I suddenly lost hope as there were no updates for S#arp but after checking several weeks ago there was an update after 2 years of no releases.  Yay!

Read more of this post

Using Dependency Injection on OpenAccess ORM MVC Project

You might be starting a new project using OpenAccess ORM and wondering how to implement dependency injection to prevent hard-coded dependencies and enable the possibility of changing them at run-time.  Well it’s not that hard specially with the new Dependency Injection Framework available today where all you need to do is get them on nuget, reference it to your project then your all good to go. Read more of this post

Loading all Kendo UI TabStrip Tabs Simultaneously

You might have a web application that loads separate processes using a Kendo UI TabStrip and you want to make things load faster by preloading the background tabs alongside the first tab, well it’s not that straight forward as you need to iterate all tabs you have then reload them one by one. Read more of this post

Upgrading S#arp to MVC4

First of all I can assure you that S#arp will work on MVC4 and I am using Sharp Architecture 2.0.4.  We just recently migrated and tested 2 large S#arp projects and it is fully working and is running in production. Read more of this post

Using SQL Server Reporting Services in MVC Web Application

You might be wondering how to use SQL Server Reporting Services Reports with an MVC Application hence you’re in this page, well let me explain to you in this simple steps Read more of this post

Draggable Sorting and Saving Changes using MVC and jQuery UI

We’ve been posting a lot of MVC and jQuery lately and I guess you have to get used to it for a couple of months more as this the technology that I am using currently in most of my projects. For today’s session I will be discussing on how to make a sortable list which you can drag and pass that sorted list information back to your server. Read more of this post


Get every new post delivered to your Inbox.

Join 197 other followers

%d bloggers like this: