1$.ajax({
2 url: "ajax.aspx?ajaxid=4&UserID=" + UserID + "&EmailAddress=" + encodeURIComponent(EmailAddress),
3 success: function(response) {
4 //Do Something
5 },
6 error: function(xhr) {
7 //Do Something to handle error
8 }
9});
10