Hi Team,
Am using java script in asp.net for input validation. When i run the below program it was throwing an exception Object expected. Please advice me where it was going wrong. Thanks in advance. i have attached the full code for your reference.
Query.txt
Am using java script in asp.net for input validation. When i run the below program it was throwing an exception Object expected. Please advice me where it was going wrong. Thanks in advance. i have attached the full code for your reference.
Code:
<script language="javascript" type="text/javascript">
function check()
{
if(document.getElementById('TextBox1').value=="")
alert("enter username");
}
</script>
<td class='list'><asp:TextBox CssClass="text" ID="TextBox1" runat="server" ></asp:TextBox></td>
Comment