asp教程.net验证码代码(无刷新验证码)
<%@ page language="c#" autoeventwireup="true" codefile="login.aspx.cs" inherits="login" %>
<!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 id="head1" runat="server">
<title>无标题页</title>
<script type="text/网页特效">
function dofresh() {
document.getelementbyid("image1").src = "verifycode.aspx";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
验证码:<asp:textbox id="txtvalidatecode" runat="server"></asp:textbox>
</td>
<td>
<asp:image id="image1" runat="server" />
<a href="javascript:dofresh();">看不清?</a>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<br />
<asp:literal id="literrormsg" runat="server"></asp:literal>
<asp:button id="btnsubmit" runat="server" text="确定" onclick="btnsubmit_click" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
首页 1 2 3 4 5 6 末页