温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Vb.net验证码控件及Demo源码
当前文件:
VBCaptcha/WebSiteCaptcha/Default.aspx,打开代码结构图
VBCaptcha/WebSiteCaptcha/Default.aspx,打开代码结构图1<%@ Register TagPrefix="cc1" Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" %> 2
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" EnableSessionState="False" %> 3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5
<html xmlns="http://www.w3.org/1999/xhtml"> 6
<head runat="server"> 7
<title>CAPTCHA demo page</title> 8
</head> 9
<body> 10
<form id="form1" runat="server" enableviewstate="false"> 11
<div> 12
<cc1:captchacontrol id="CaptchaControl1" runat="server" ></cc1:captchacontrol> 13
14
<asp:ValidationSummary ID="ValidationSummary1" runat="server" /> 15
<p></p> 16
(note that ViewState and SessionState are both <strong>disabled</strong>)<br /> 17
<br /> 18
<asp:Button ID="Button1" runat="server" Text="Submit" /> 19
</div> 20
</form> 21
</body> 22
</html> 23



