The background
Maybe it is not necessary, but I am afraid that single line question would be too complex.
So... I had min-max generic range validator (RangeValidator), because XAML does not work with generic classes I created simple derivative IntRangeValidator which would set int as generic type, because in current case I need validat...
In a ListView, I have a CustomValidator set up to validate a field whenever a button with CommandName="Delete" is clicked.
<ItemTemplate>
<asp:TextBox ID="NameTextBox" Text=<%# Eval("Name") %> runat="server" />
<asp:Button ID="DeleteButton" Text="Delete" CommandName="Delete" ValidationGroup="Delete" runat="server" />
<asp:C...
Hi,
How can i check if my image link is valid for both IE and FF? For example this link works just in FF, no image is displayed in IE browser. I checked the image and the color space is RGB. So image space problem is excluded.
Thanks.
...
I have a form using JQuery validation plugin.
<label>
<input name="Distribution[]" type="checkbox" id="dist_europe" class="required minlength:1" value="Europe" /> Europe
</label>
<select name="Europe[]" size="5" multiple id="Europe">
<option value='Albania'>Albania</option>
<option value='Andorra'>Andorra</option>
<optio...
I this model:
class Bunny < ActiveRecord::Base
attr_accessor :number
validates_presence_of :number
validates_numericality_of :number
end
Whenever I submit a form to create this model I get the following error:
undefined method `number_before_type_cast' for #<Bunny:0x103624338>
...
We have a directory system that lists people with their credentials such as email phone and etc
Their web profile link is also listed.
but this link is created by taking the email username and adding it to a link. so [email protected] has a profile page at school.com/user/joe01
currently there is no validation to check if the actual user...
I see that most of people interested in EF4 are MVC developers. So; for a MVC2 medium application that implements DDD (Interfaces, Repositories, Services, Entities and IoC):
Do you recomend separating the different concerns in layers and using Self Tracking Entities? (here I know that ObjectChangeTracker is not being used but I don't f...
I employ email validation to grant people full use of the site. The trouble is, sometimes these emails get spam-boxed, or never arrive, so I get many people complaining that they cannot confirm their account.
Was wondering if there are other (creative) ways to offer secondary validation option to users who didnt get the validation. Its ...
Can the standard ASP.NET Visual Studio validation controls display an icon with a tool tip message instead of text, the way the WinForms ErrorProvider controls work?
If not, is the AjaxToolkit's ValidatorCallout control the best approach? Is this control flakey?
...
So, if I want to add a new object to my database, I can write this:
public ActionResult Something(SomeObject Object) {
if (ModelState.IsValid()) {
DataContext.SomeObjects.InsertOnSubmit(Object);
DataContext.SubmitChanges();
};
}
But, how does validation get called when I want to update an object? Does UpdateMod...
I have a category dropdown selection element in my form. The form is validated with jQuery as follows:
$('#myForm').validate({
rules: {
text: {
required: true
},
category: {
required: true
}
},
messages: {
text: {
required: "Text required"
...
Hello,
I am trying to validate a form using the jquery validation plugin.
It's usually pretty easy but this time I'm using dynamic field.
The new fields are not being checked so I tryed to remove the validator then to recreate it but It's doesnt seem to work.
$j("#add").click(function(){
$j("#lignes").append($j(".ligne_vide:l...
Hey everybody,
I am trying to write a unit testing for a User model in Ruby on Rails. I am using authlogic and need to check that the first_name and last_name of the user model attributes are not the same when the user is registering.
This is my user model:
class User < ActiveRecord::Base
acts_as_authentic do |c|
c.login_field= ...
ASP.NET 4.0 has introduced the property 'ClientIDMode', which allows one to specify how the html element's ids are rendered in the output html.
My project is currently set to 'Static' (the shortest / contains no hierarchy id's)
When using any validator (RequiredFieldValidator, RegularExpressionValidator...), unless the control it's val...
Hi,
Using JQuery Validation plugin, I am trying to call the .valid() method without the side-effects of displaying error messages on screen. I have tried a number of scenarios with no success, my latest being:
$('#signup').validate({
showErrors: function() { return; },
errorElement: "",
errorClass: "...
Hi,
I am running into a peculiar problem when I am trying to invoke h:inputText label field value on validation. It only works when I pass a static value to label field. The time I pass a dynamic value to it, it fails to render the label when some validation fails for that field.
<h:inputText id="fullNameField" value="#{newUserFormBean...
Two things:
A) Is it possible to set the Page.IsValid (Is_Valid) property through Jquery so that I dont have to use the aspx validators? It is my understanding that the IsValid property is read-only?
B) When the validators are in, is it possible to find out, through Jquery (ofcourse) which controls caused the validation to fail? An exa...
I'm using jQuery autocomplete on a text box so the user can select a trade. I need to make this a required field. I'm also using jQuery Validation.
Here's my autocomplete cpde:
$(\"#trade\").autocomplete({
source: " . $tradeString . ",
maxHeight:100,
autoFill: true,
minLength: 3,
close: function() { $(\"#form\").val...
I have a form:
<StackPanel x:Name="LayoutRoot">
<sdk:ValidationSummary />
<sdk:Label Target="{Binding ElementName=Greeting}" />
<TextBox x:Name="Greeting" Text="{Binding Greeting, Mode=TwoWay,
ValidatesOnExceptions=True, NotifyOnValidationError=True}" />
<sdk:Label Target="{Binding ElementName=Name}" />
<Te...
I have a form. I am validating user input on client side and server side in case if any naughty user bypasses client side validation. I am using asp.net's RequiredFieldValidators. I have set them to dynamic. They display fine on client side if form fails validation. But if I try to bypass client side validation, they never show up, even ...