if (txtUsername != "" && txtPassword != "") { debugger $.ajax({ url: '/../UserData/User.json', dataType: 'json', success: function (data) { $.each(data, function (obj, item) { if (item.user_name == txtUsername && item.password == txtPassword) { window.location.href = "User/123.aspx?user=" + item.user_id + ""; } }); }, error: function (data) { alert('ERROR: Please Try Later ! '); } }); } else { document.getElementById("<%=lblIncorrect.ClientID %>").style.display = "block"; } return false; });
return false
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)