Sathish Pabbathi

Sathish Pabbathi

  • NA
  • 122
  • 37.7k

Asp.net with javascrit

Apr 12 2013 2:38 AM
in THE BELOW CODE OnClientClick not Firing plz Help me for this problem...


<script> 
function CheckValid() 
                {
 
                  var txt1 = document.getElementById('txtEmpFName').value; // textbox 1 ID is txt1
       
                if (txt1 ==0)
                 {
                    alert("plz fill the employe's First name!!");
                }
                
                else 
                {
                    alert("are you sure you want to add reord?");
                }
                 }
</script>
<form>
 <asp:Button ID="Button11" runat="server" Text="Save" class="btn save" 
                                                   OnClientClick="return CheckValid()"  OnClick="Button11_Click" ValidationGroup="a" /><form>

Answers (7)