<script language="javascript" type="text/javascript"> function JobDetailsValidation() { debugger; var Position=document.getElementById("txtPosition").value; var KeySkills=document.getElementById("txtKeySkills").value; var JobDescription=document.getElementById("txtJobDiscription").value; var JobLocation=document.getElementById("txtJobLocation").value; if(Position==null||Position==""||KeySkills==null||KeySkills==""||JobDescription==null||JobDescription==""||JobDescription==null||JobDescription==""||JobLocation==null||JobLocation=="") { alert("Job Details name must be filled out"); return false; } else { ExperienceValidation() } } function ExperienceValidation() { var Experience=document.getElementById("DropDownList1").value; var Experience1=document.getElementById("DropDownList2").value; var CTC=document.getElementById("DropDownList3").value; var Level=document.getElementById("DropDownList4").value; var Gender=document.getElementById("DropDownList5").value; if(Experience==null||Experience==""||Experience1==null||Experience1==""||CTC==null||CTC==""||Level==null||Level==""||Gender==null||Gender=="") { alert("Please Select All Details Of Experience Section"); return false; } return false; } </script>
true
<asp:button id="btnOne" runat="server" text="check" onclientclick="return JobDetailsValidation()" xmlns:asp="#unknown"></asp:button>
OnClientClick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)