I have a Silverlight 3 DataGrid that I am creating in code, in order to handle transposing data. For every column I need, I create a DataGridTextColumn, and set it's binding in code.
I set the Binding object = TwoWay and set ValidatesOnExceptions = false and NotifyOnValidationError = false
The grid worked fine under Silverlight 2, but...
i have a div with many many html elements like other divs, trs, tds, tables etc
is it possible to get all the elements which have an id?
i know asking $("#test") will give me the specific element with this id
but is it possible to get find("#") or something like this?!
greetz
...
Ok, I have a major issue with a control I am using.
The site I'm doing uses custom units for some fields in their checkout (who decided that horses should be measures in hands for god's sake?!), and we have to be able to validate based on the unit selected, i.e. they can have between 15 and 40 hands (or something) which is 200 - 900 cm ...
Hi,
I'm developing a GUI in C++ using dev-c++.
I have an edit control like this:
hctrl = CreateWindowEx(
0,
"EDIT", /* Nombre de la clase */
"", /* Texto del título, no tiene */
ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER...
Is there an easy way to take a dynamic decimal value and create a validation regular expression that can handle this?
For example, I know that /1[0-9]{1}[0-9]{1}/ should match anything from 100-199, so what would be the best way to programmatically create a similar structure given any decimal number?
I was thinking that I could just lo...
I'm trying to validate a form using JavaScript but i'm a bit stuck on displaying a message next to the field to say that "This field is required". How do I go about doing this? Sorry, I'm very new to JavaScript.
Here's my js code:
var allFieldsRequired = true;
function specialPostcode(postalCode)
{
var re = /^[TA]{2}([1-14]|22|15){1,2}...
Hi I have created a reg.php. I need to include the server validation using php. I have written the code and dissabled the java script in my browser. But it is showing "you have successfully registered even if i dont give any field.this is my code
<?php
$hostname = "xxxx";
$username = "xxx";
$password = "xxx";
$dbName = "xxx"...
I have a Required field validator attached to a fileupload control. When the user hits the insert button to insert the image into an html editor next to the control the validator fires off if nothing was in the fileupload text box. That works fine; however, when the save button at the bottom of the page is clicked it fires off the requir...
I have a page where a user can either select a vendor via dropdown or enter a vendor number via textbox. One or the other must have a value. I can do this in javascript easily but how can I do this using a custom validator provided by ajax all on the client side?
Edited
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e ...
Hello, I'm trying to learn how to validate a form and I have this problem:
When I run this code and I don't enter anything - the form should not send, but it does. My question is ... Why, and how can I fix it?
the html:
<form method="post" action="#">
<fieldset>
<legend>Formular</legend>
<label for="name">Name: </label>
<input type="t...
Hello all
I have added a method on jQuery validator like this
$.validator.addMethod('myEqual', function (value, element) {
return value == element.value; // this one here didn't work
}, 'Please enter a greater year!');
$.metadata.setType("attr", "validate");
$("#educationForm").validate({
showError...
I am having two textboxes and a submit button. I have applied Custom validation to the First TextBox. When i am loosing my focus from the first textbox, Custom validator is doing validation.But i want that validation on Button Click only.
...
In a perfect world you have the validation (verification) of inputs in the business logic layer, not in the presentation or persistence layer. In reality you can (or want) to place it anywhere.
Lets make a simple sample (web-application using a framework like JSF or ZK): A certain input field accepts 4 digits between 0001 and 0500.
Yo...
I need a asp.net text box validation to enter value which is above zero;
Not less than zero or zero
...
A common problem in LINQ2SQL is while the .NET String allows assigning any length to its variable, your database may have a specific max length constraint (like VARCHAR(5)). This will lead to the SQL error message "String or binary data would be truncated.", which is extremely unhelpful since it doesn't tell you which fields is the culpr...
I've always found validation against a schema to be an invaluable ward against thinkos and would like to incorporate validation checks as part of a project where I frequently need to hand-write XML files a few hundred lines in length. My text editor has a fairly nice CLI integration feature, so I'm looking for a command-line validator.
...
What's a good language for validating CSV files?
Edit: Yes I am looking for an excuse to learn a new language. Often the files have extra blank rows or fields, or the fields are too long. Currently I'm using VBA script in Excel, but was wanting to try some other languages.
...
Hi
On my web site, I have the following code:
<input type="image" src="images/btn.png" alt="Submit" border="0" height="25" width="102" />
When I run my web site through one of the many HTML validators, they prompt to inform me that:
border
height
width
are invalid attributes of the INPUT element.
However, YSlow and Google PageSp...
I'm trying to get this Generic DuplicateValidationRule working, which basically checks a Collection for duplicates (based on a generic business object type passed in). Lets take the IBankAccount Business Object for example:
public interface IBankAccount : IMyBusinessObjectBase
{
IBank Bank
{
get;
set;
}
IBankAccountType BankAcc...
i have a change password control within a a collapable div controled via jquery, when the user clicks change password if there are any validation errors asp.net validation controls are displayed. However, because the div is collapsed by default when the postback occurs the div is collapsed so you have to click the change my password to s...