validator

How to check PHP code against a specific set of coding conventions?

I have a PHP library that I'm planning to submit to the PEAR database. In order to do this, the library needs to follow the PEAR Coding Standards. Is there a tool that can check my code to make sure it follows the standards completely? ...

Castle Component Validator "Value cannot be null. Parameter name: key" when using FriendlyNameKey

Hi... I'm having a little problem with Validator component from Castle ActiveRecord. I want to localize the messages of the validators attributes, if i use ErrorMessageKey (with the resources from the project) it works fine...but, if i add the FriendlyNameKey property (of the attribute) and try to validate my model it's throws an Argume...

Class-level validation

Hello! I am validating a class with DataAnnotations utils. I have a class that has a Title property and an Item property. I want to apply a RequiredAttribute to the Title property but it should be invalid only if the Item property is null; if the Item property is set with an object, the Title is not required. In short words, I want th...

can anyone help me please - validator in modal popup prevent my button from postback

i m using asp.net .net 3.5 with c# and ajax control toolkit i have a very strange problem for some reasons i m forced to use the following solution i have a situation that includs a validation control inside a usercontrol that is loaded on the page using a modalpopup when i click a button from inside a gridview the problem is that t...