I'm in the process of reproducing some standalone HTML forms as pages in a CMS that uses FCKEditor by simply copying and pasting the relevant code into the editor.
But when I save and view the page, the HTML has been changed and the tag has been moved up to just below the open tag -- and not at the bottom of the form. This obviously r...
I have a form that accepts javascript which allows the use of document.write() and I want to validate the output of the javascript which may look like this:
var a = 'book1';
var b = 2;
document.write("</scr"+"ipt>");
document.write("<scr"+"ipt type='text/javascript'src='http://www.example.com/loader.js?mydoc="+a+"&page="+b+"'>")...
Hi,
Please advise, is there any web-based licensing solution, where I can generate registration codes, and validate them in the software by connecting to my licensing server?
Thank you.
...
How do you get client side validation on two properties such as the classic password confirm password scenario.
I'm using a metadata class based on EF mapping to my DB table, heres the code.
The commented out attributes on my class will get me server side validation but not client side.
[MetadataType(typeof(MemberMD))]
public partial ...
I would like to know how people are going about validating collections in WPF. Lets say for example that I have an observable collection of ViewModels that I am binding to the items source of a grid, and the user can add new rows to the grid and needs to fill them.
First of all I need to validate on each row to ensure that required fiel...
Hi ,
My project have two main requirements
1) Different set of rules applied to same object at insertion and while updating it.
2) Different validation rules based on locale.
In ADDRESS object STATE field requires different validation rules
For USA: STATE cannot be NULL.
For everywhere else it can be NULL.
For first requirement i am...
Does anyone have any recommendations for either of these validation ASP.Net MVC Validation frameworks?
xVal: http://xval.codeplex.com/
FluentValidation: http://fluentvalidation.codeplex.com/documentation
NHibernate.Validator
DataAnnotations
by the way: my project use sharp-architecture
...
Hi,
I have an ASP.NET web app (with C#). In it I have a form with several fields and validators. For one of the validators I only need to validate when:
a certain textbox is empty
and a certain record does not exist in the database (this is already handled).
I know I can't enable/disable the validator on page_load because something...
Hello,
I am relatively new to Javascript so I'm hoping this is a simple mistake. I building a generic form validation function that is called on the form's onSubmit. The function loops through all the form's child elements, looks for certain classes, and analyzes the contents of the appropriate fields. If it finds something missing or er...
Is it possible to use ASP.NET MVC 2's DataAnnotations to only allow characters (no number), or even provide a whitelist of allowed strings? Example?
...
Hello,
I have a pupil entity implementing IDataErrorInfo:
Now the exact same rules I want to validate against the Lastname, Gender, Street, City, Postal and Phone.
Do I really have to repeat all that ? Using ValidationRule class would be better but then I
can not handle disabling/enabling buttons via ICommand.
...
#region Valida...
Asp.net mvc2: How to add validation rules - A number field is not required but has range limitation?
...
I was looking at the metadata for System.Web.Configuration.CompilationSection, and noticed the following attribute on the TimeSpan BatchTimeout property:
[TimeSpanValidator(MinValueString = "00:00:00",
MaxValueString = "10675199.02:48:05.4775807")]
Could someone explain why this is the allowed max value? TimeSpan itself has an upper...
Today I asked myself how can I handle user input if the user have not to enter it...
A firstname and lastname is all he must enter. The adress he needs not to fill out.
Now I have to decide, is the missing data a user mistake or didn`t the user want to enter
data?
How can I deal with such a scenario?
...
Please check out the comment field at the bottom
on http://tinyurl.com/3xow97t
in Firefox - it works pretty well - the red warning gets added if empty
and the submit gets disabled - once there is text inside, the submit gets re-enabled.
the problem i have now, it does not work in IE.
i really hope somebody can help.
the iframe conte...
You have a web page with a form that has an input field of type file. You have another web page that expects the data from the first page.
In the second page you need to check whether a file has been sent.
How do you do that?
I've been using the following statement but I'm not sure about it:
$_FILES["file"]["tmp_name"] == ""
...
I would like to know how to translate the following code to codebehind instead of XAML:
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip"
Value="{Binding RelativeSource={RelativeSource Self},
Path=(Validation.Errors)[0].ErrorContent}"/>
</Trigger>
</Styl...
Django newbie here.
I wrote simplified login form which takes email and password. It works great if both email and password are supplied, but if either is missing i get KeyError exception. According to django documentation this should never happen:
By default, each Field class assumes the value is required, so if you pass an empty v...
PHP has many built-in functions to validate numbers but they all expect input in computer format: 1234.56. I need to validate stuff like 1,234.56 (English) or 1.234,56 (Spanish), together with some typical attributes (accepted range, max number of decimals, etc.).
I started writing my own function but I soon got lost. It's easy to read ...
I have to validate that maximum 3 checkboxes are clicked. There are 11. How could I do this efficiently and without testing every possible situation?
...