PDA

View Full Version : what is validation in asp.net?



ankita123
08-27-2012, 06:56 AM
tell me details dear.

williamsjack
08-31-2012, 04:57 AM
thanks foe this post here.

rosesmark
09-05-2012, 08:36 AM
Listing 1: Client-side JavaScript for form validation


<!--
Function CheckForm(form)
{
for(var intCtr = 0; intCtr <= (form.elements.length - 5); ++intCtr)
{
var temp = form.elements[intCtr];
if(temp.type == "text" && temp.value == "")
{
alert("Please Enter All Information!");
temp.focus();
return false;
}
}
return true;
}
//-->
</script>

Tutorial About Validation:
http://msdn.microsoft.com/en-us/library/aa479013.aspx#aspnet-validateaspnetservercontrols_topic2

SteeleFrancis
09-14-2012, 07:16 AM
Tnx for the scripts)
You have just saved me much time.
Awesome!

jamsen
09-18-2012, 08:31 PM
A Validation server control is used to validate the data of an input control. If the data does not pass validation, it will display an error message to the user.