» Home » validating » Page 1
Never ending loop while setting focus to control on validating event in cantrol validating event
Category : Programming Languages

I am writing below code for validating compulsary field account no. in form.
User's requirement is set focus back on field when error comes :

If txtAccountNo = "" Then
MessageBox.Show("Account no filed can't be left empty")
Exit Sub
End If

It's working properlly. But suppose user don't want to fill fo

View Replies

Qt C++ XML, validating against a DTD?
Category : C & C++ & C#

Is there a way to validate an XML file against a DTD with Qt's XML handling? I've tried googling around but can't seem to get a straight answer. If Qt doesn't include support for validating an XML file, what might be the process of implementing validation myself? Any good reference to start with in regards to validating XML against a spec? Thanks for the help!

View Replies

Error validating DTD
Category : Programming Languages

I'm trying to write a DTD for an XML file.Here it is : https://prod-c2g.s3.amazonaws.com/db/Winter2013/files/courses-noID.xml

Here's my DTD

<!ELEMENT Course_Catalog (Department*) >
<!ELEMENT Department (Title*, Chair*, Course*) >
<!ELEMENT Chair (Profe

View Replies

TAGS : Error validating

Error when validating a XML with XSD
Category : Programming Languages

I'm trying to validate a XML file with XSD, but I get a "Could not find schema information for the element 'xxx'" for each element and attribute.

My C# code is:

public ReadeXmlFile(string FilePath)
var settings = new XmlReaderSettings
IgnoreComments = true,
ValidationType = ValidationType.Schema,

View Replies

PHP regex for validating a URL
Category : Programming Languages

I'm looking for a decent regex to match a URL (a full URL with scheme, domain, path etc.)
I would normally use filter_var but I can't in this case as I have to support PHP<5.2!

I've searched the web but can't find anything that I'm confident will be fool-proof, and all I can find on SO is people saying to use filter_var.

Does anybody have a regex that they use fo

View Replies

TAGS : regex validating

PHP: Validating URL with Curl
Category : Programming Languages
$fileSource = "http://google.com";
$ch = curl_init($fileSource);
curl_setopt($ch, CURLOPT_NOBODY, true);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($retcode != 200) {
$error .= "The source specified is not a valid URL.";

Here's my issue. When I us

View Replies

MVC Validating data
Category : Programming Languages

I want to use MVC in my new project with Swing.

But I have some question.

In my MainView I have one input form and a submit button.
When I click on submit, my MainController.setUrl(Value) is called.
Then I have to verify the data.
Where I must verify this data in my MainController ? in my MainModel ?

View Replies

TAGS : Validating data

Not validating CI form
Category : Programming Languages

I'm trying to figure out why when I run this controller and it tries to run the form it won't validate it. Any ideas? Everytime I try to submit the form it comes back with my failed validation error that There was a problem submitting the form! Please refresh the window and try again!


<?php if ( ! defin

View Replies

TAGS : validating form

Need help in validating domains
Category : Programming Languages

I need help in validating domains.
This is reg-ex I am using to validate: /^[a-zd][a-zd-]{0,62}$/i

It satisfies my needs but it fails to validate the domain
like www.google*.com or www.google*.com*. I don't want to save these type of domain.

This is the function I am using:

$pieces = explode(".",$domain_name);

View Replies

Regex for validating name
Category : Mobile Programming

Any one please tell me the regex expression for allowing alphabet as first letter and alphabets,digits,.(dot),-(hyphen) as remaining letters with minimum of 2 letters and maximum of 15 letters.

Thank you in advance..

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .