jquery+asp Tutorial. NET Detection account has been registered instance code
<%@ page language= "C #" autoeventwireup= "true" codebehind= "Default.aspx.cs" inherits= "Ajax_xml._default"%>
<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<title></title>
<script type= "text/web Effects" src= "jquery-1.3.2-vsdoc2". Web Effects "language=" Web effects ></script>
<script type= "Text/javascript" language= "JavaScript" >
$ (function () {
$ ("#<%=userid.clientid%>"). KeyUp (
function () {
$.ajax ({
Type: "Post",
ContentType: "application/Web Effects on",
DataType: "JSON",
URL: "Webservice1.asmx/userisexist",
Data: "{userid: '" + $ ("#<%=userid.clientid%>"). Val () + "'}",
Success:function (Result) {
if (Result.d = = "true")
$ ("#<%=isexist.clientid%>"). Text ("yes"); Account already exists
Else
$ ("#<%=isexist.clientid%>"). Text ("no");
}
});
}
);
})
</script>
<body>
<form id= "Form1" runat= "Server" >
<div>
<table style= "width:100%;" >
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:textbox id= "userid" runat= "Server" ></asp:textbox>
<asp:label id= "isexist" runat= "Server" visible= "true" ></asp:label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>