Hi All,
I've a java script file in which I've written a validation function. I want to call and execute this function in my asp.net page so that the client-side validation is executed.
Somebody please help me soon.

<script src="datetimepicker.js"  type="text/javascript"></script>
 function validateform()
	    {
	          if(IsEmptyField(document.getElementById("txtCompName"),'Provide Company Name')) return false;
}

just use the functions as shown above,where isemptyfield is the function from datetimepicker.js

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.