Problem in ASP Validation
-
Hi all, I am facing a problem in ASP project. Can anyone plz help me with validation of an html page. I want to validate the fields on an html page and then submit the details in the database. I am able to add the details to the database. But if any of the field remains empty, then that particular column remains empty in the database. I am also able to display a message on the neext screen, if the user clicks on Submit. I want a message to be popped up at the screen itself. I urgently need some help...Plz let me know. Thanks in advance Regards, Shraddha
-
Hi all, I am facing a problem in ASP project. Can anyone plz help me with validation of an html page. I want to validate the fields on an html page and then submit the details in the database. I am able to add the details to the database. But if any of the field remains empty, then that particular column remains empty in the database. I am also able to display a message on the neext screen, if the user clicks on Submit. I want a message to be popped up at the screen itself. I urgently need some help...Plz let me know. Thanks in advance Regards, Shraddha
Hi Shraddha, Are you using or ? If you are using submit button then you use onsubmit attribute at form tag. <!-- function submitconfirm() { /*var response=confirm("are you sure you want to submit?"); return response;*/ if(txt1.value == '') { alert('null value'); return false; } else frmname.submit() } //-->
name:
email:If you use button then you call javascript with button onclick event. Regards, Pavan.