default values for datatypes

C

claudia

Hi all,
I want to give validations for the integer field. If the field is
empty or it contains null value i am going to give the validation like this
(field should not be blank). for that i gave jscript validation like this
if(xpath.text==null || xpath.text==" ")
{
XDocument.UI.Alert("field should not be blank');
}
else if(xpath.text<=0)
{
XDocument.UI.Alert("field should be greater than zero');
}
else
{
}
..
..
..
in preview, if that text field is empty it shows the error message like this
"field should be greater than zero" . One more thing, i didn't give any
default value to the text field. I think some deafult values assigned to
the txt field according to the datatype. if anyone knows how to capture the
default values for the datatypes. please tell me.
by
Claudiarani
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top