<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript">
function CheckUserName() {
$get("checkusername").innerHTML = "<img src=''images/loading.gif'' alt=''正在验证'' />";
PageMethods.IsUserNameExist($get(''txtUserName'').value, DealWithResult);
}
function DealWithResult(result) {
var obj = $get("checkusername");
if (result == "ok") {
obj.innerHTML = "<img src=''images/check_right.gif'' alt=''right''/>";
}
else {
obj.innerHTML = "<img src=''images/check_error.gif'' alt=''error''/>" + result;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table cellspacing="0" cellpadding="0" summary="注册">
<tr>
<th>
<label for="username">
用户名 *</label>
</th>
<td>
<input type="text" name="username" size="25" maxlength="15" tabindex="3" onblur="CheckUserName();"
&nbs |