Wednesday, March 30, 2016
<script type="text/javascript">
$(function () {
$("[id*=btnSave]").bind("click", function () {
var user = {};
user.Username = $("[id*=txtUsername]").val();
user.Password = $("[id*=txtPassword]").val();
$.ajax({
type: "POST",
url: "Default.aspx/SaveUser",
data: '{user: ' + JSON.stringify(user) + '}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert("User has been added successfully.");
window.location.reload();
}
});
return false;
});
});
</script>
Labels: C#, Javascript, jquery
Tuesday, March 22, 2016
See more:
http://1stwebmagazine.com/tipsy-jquery-tooltip
Demo:
http://1stwebmagazine.com/demo/tipsy-jquery-tooltip.html
Subscribe to:
Posts (Atom)