validation

How can I get WPF to NOT display validation errors upon initial display of control?

When I first display my screen to the user, I'd rather not have all the validation messages show up for required fields and such before the user has had a chance to fill in any of the form fields. I've set the UpdateSourceTrigger on my bindings to LostFocus, but the errors are still displayed the first time the control is shown. Is there...

Conditional Formatting in Excel

I'm very new to Excel and VBA and was wondering if there is a way I could make conditional formatting based on values in a drop down list (created from data validation). I currently have a warning if the user enters something that is not valid (data validation), but I want to change the cell's background color to red if invalid, or gree...

Show Fancybox after form validation success

Hi, I'm using jQuery+asp.net webforms, also I'm using jQuery Validation plugin and Fancybox plugin. My code works fine when I use the plugins separately. My webform is for user registration. I use validation plugin to validate my form before it's submitted to the server, the form is validated and submitted when the user clicks an asp.ne...

URL flow when writing a wizard in PHP

Hello, I am writing a basic wizard for my web site. It will have 4 steps, and each needs to have its own URL. Each step must first validate a form before moving on. If the form for a given step fails to validate, I don't want the URL to change. But if it passes, I do want it to move on. What is the preferred way to write this? Usi...

Rails: how to require at least one field not to be blank

Hi I know I can require a field by adding validates_presence_of :field to the model. However, how do I require at least one field to be mandatory, while not requiring any particular field? thanks in advance -- Deb ...

XML Validation in ASP.NET MVC during load

I'm writing an ASP.NET MVC 2 application where one of the backing stores I plan to support is XML. I have a POCO that represents the settings for the site, along with an XML file to contain these settings. My question is what is the best way to validate this data as it is read from disk in to the POCO? I know I can use an XSD, or mayb...

Business rule validation of hierarchical list of objects ASP.NET MVC

I have a list of objects that are organized in a tree using a Depth property: public class Quota { [Range(0, int.MaxValue, ErrorMessage = "Please enter an amount above zero.")] public int Amount { get; set; } public int Depth { get; set; } [Required] [RegularExpression("^[a-zA-Z]+$")] public string Origin { get...

Javascript function to disable validation on your page.

I need a javascript function, which can turn my asp.net validation off on the webpage. Do anyone have any idea about this. ...

MVC2: Validate PartialView before Form Submit of Page containing Partial View

I am using asp.net mvc2 and having a basic Page that includes a Partial View within a form <% using (Html.BeginForm()) { %> <% Html.RenderAction("partialViewActionName", "Controllername"); %> <input type="submit" value="Weiter" /> <% } %> When I submit the form, the httpPost Action of my Page is called, and AFTER that the httpPos...

PHP contact form, am I doing it wrong?

I'm learning PHP and I'm trying to write a simple email script. I have a function (checkEmpty) to check if all the forms are filled in and if the email adress is valid (isEmailValid). I'm not sure how to return true checkEmpty funciton. Here's my code: When the submit button is clicked: if (isset($_POST['submit'])) { //INSERT FORM VAL...

SSIS DTSX File Repair Tool

I'm working with an SSIS 2005 file that crashes Visual Studio 2005 on my workstation. This happens when I open the data flow diagram and Visual Studio attempts to validate the package. I can open it successfully on another computer though. The package itself is fairly simple and only has two control flow tasks and maybe ten tasks in t...

Spring Batch validation

Hello. Does Spring Batch framework provide its specific validation mechanism? I mean, how it's possible to specify validation bean? Is spring Validator acceptable see example here ? My validation is result of @NamedQuery - if query returned result, the validation is OK, else - false. ...

Validating XML with multiple XSDs in Java

Hello! I want to parse an XML file with Java and validate it in the same step against an XSD schema. An XML file may contain content of several schemas, like this: <outer xmlns="my.outer.namespace" xmlns:x="my.third.namespace"> <foo>hello</foo> <inner xmlns="my.inner.namespace"> <bar x:id="bar">world</bar> </inner>...

validate form view and gridview at the same form

i have formview when with tow required validator and gridview with reqired validator when i click insert on form view it fires the validation on the gridview i want when i click inserton form view just validate the tow validators on the form and doesnt fire the validator on gridview ...

Red border around TextBox when validation fails

I am using ASP.NET MVC 2. Html.DropDownListFor and Html.TextAreaFor automatically get red borders when the validation fails. How to make the four borders of a TextBox (using Html.TextBoxFor) red when it fails validation? For example, I have a TextBox that is required and when the user submits the form without specifying a value in the...

Detect changes to user input controls in Silverlight?

I have a childwindow with a number of Textboxes, Comboboxes, and DatePickers. I want to know if a user has changed any value in these (to know if I need to save to db) One way I could think of doing this are in the 'on chg' event handlers and set bool. But if a user changes the value, in say a combobox, then changes back to the origin...

ANY way to consolidate this code?

I am building a PHP registration form which takes the following fields for up to 20 athletes: First Name Middle Initial Last Name Federation Number Address City State Zip DOB SSN Phone Email I am only through 7 of the fields for each fighter and my php file is very large (over 40kb). Is there ANY way to consolidate this code at...

How to set the default error message in mvc2 validation

Hi How can I change the default error message for required rule validation for example? ...

Form input validation with JAX-RS

I want to use JAX-RS REST services as a back-end for a web application used directly by humans with browsers. Since humans make mistakes from time to time I want to validate the form input and redisplay the form with validation message, if something wrong was entered. By default JAX-RS sends a 400 or 404 status code if not all or wrong v...

How does MVC Client Side validation work exactly?

I have used MVC MVC 2.0 Client Side validation, but it does not work as expected. Now I am trying to find out, what I did wrong. How does it work? I have this rendered form: <form method="post" action="/Sprint/Edit/68d4886b-a86a-4f0b-b713-39219febddf3"> <fieldset> <legend>Sprint</legend> <table> <tb...