ASP tutorial. NET Authenticode code (no refresh verification code)
<%@ 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 ">
<title> Untitled Page </title>
<script type= "text/web Effects" >
function Dofresh () {
document.getElementById ("Image1"). src = "verifycode.aspx";
}
</script>
<body>
<form id= "Form1" runat= "Server" >
<div>
<table>
<tr>
<td>
Verification code: <asp:textbox id= "Txtvalidatecode" runat= "Server" ></asp:textbox>
</td>
<td>
<asp:image id= "Image1" runat= "Server"/>
<a href= "Javascript:dofresh ();" > Can't see clearly?</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= "OK" onclick= "btnSubmit_Click"/>
</td>
</tr>
</table>
</div>
</form>
</body>