i'm new to asp.net and busy with a tutorial website.
I'm trying to call a server side function using an if statement, the problem is that the if statement is completely ignored i.e the function is called regardless.
This works when using a normal js alert
code below:
$(function () {
$("#idnum").keyup(function () {
if (this.value.length == 13) {
<%= TextBox1_TextChanged(this, idnum.Text) %> ;
//call code behind function to get contact info with ID
}
});
});