<script type="text/javascript"> function ValidateTextBox() { var Text = document.getElementById('<%=txtkey.ClientID %>'); if(Text.value == "") { alert('Please enter at least one key skill..'); return false; } } </script>
<form> <div> <body> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/search_btn.png" onclick="ImageButton1_Click" CausesValidation="False" OnClientClick="return ValidateTextBox()" /> </form> </body>
Quote:<script type="text/javascript"> function ValidateTextBox() { var Text = document.getElementById('<%=txtkey.ClientID %>'); if(Text.value == "") { alert('Please enter at least one key skill..'); return false; }else{ return true; } } </script>
Quote:<form> <body> <asp:imagebutton id="ImageButton1" runat="server" imageurl="~/Images/search_btn.png" onclick="ImageButton1_Click" causesvalidation="False" onclientclick="return ValidateTextBox();"/> </form> </body>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)