<input id="btnDoAjaxCall" type="button" value="Check Availability" onclick="return btnDoAjaxCall_onclick()" />
<script language="javascript" type="text/javascript"> function btnDoAjaxCall_onclick() { var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("showAvailability").innerHTML = xmlhttp.responseText; } } var str = document.getElementById("txtEmail").value; //sending request to handler page xmlhttp.open("GET", "Handler.ashx?uname=" + str, true); xmlhttp.send(); } </script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)