.NET 程序獲取驗證碼方法(二)
2010/11/1 11:42:08
文章提供三種不同風格 asp教程.net 圖形驗證碼代碼。
<%@ page language="c#" contenttype="text/html" responseencoding="gb2312" %>
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" www.111cn.net/tr/xhtml1/dtd/xhtml1-transitional.dtd>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<title>網站制作驗證碼代碼(二)</title>
</head>
<body>
<%
<cc1:authcode id="authcode1" runat="server"imagestyle-imgbgcolor="white" imagestyle-imgbordercolor="deeps教程kyblue" imagestyle-imgnoisecolor="ivory" imagestyle-textcolor1="azure"imagestyle-textcolor2="ghostwhite" />
實現這種功能的關鍵在于 [designerserializationvisibility(designerserializationvisibility.content)]
以及 typeconverter(typeof(imagestyletypeconver)) 這兩個地方。
[designerserializationvisibility(designerserializationvisibility.content)] 提示屬性更改好生成
imagestyle-imgbgcolor="white" 這種代碼,至于 typeconverter(typeof(imagestyletypeconver))
則主要用于類型轉換,具體的見代碼里的 imagestyletypeconver 類,該類是繼承于expandableobjectconverter 類的,并且需要實現下面四個重載:
public override bool canconvertfrom(itypedescriptorcontext context, type sourcetype)
{
}
public override bool canconvertto(itypedescriptorcontext context, type destinationtype)
{
}
public override object convertfrom(itypedescriptorcontext context, cultureinfo culture, object value)
{
}
public override object convertto(itypedescriptorcontext context, cultureinfo culture, object value, type destinationtype)
{
}
返回列表
返回首頁
主站蜘蛛池模板:
国语自产少妇精品视频|
末成年美女黄网站色大片连接|
国产一区二区三区日韩精品|
怡红院在线观看视频|
夫妇交换性3中文字幕|
中文字幕人妻无码一夲道|
日韩欧国产精品一区综合无码
|
男人j放进女人p动态图视频|
国产va免费精品高清在线观看|
麻豆国产一区二区在线观看|
国产裸拍裸体视频在线观看|
www.好吊色.com|
成人深夜福利视频|
久久久精品国产免大香伊|
晓青老师的丝袜系列|
亚洲伊人久久大香线蕉结合|
波多野结衣上班族|
免费一级做a爰片久久毛片潮喷
|
国产欧美日韩专区|
2022国产麻豆剧果冻传媒剧情|
坐公交车弄了2个小时小视频|
一区二区三区免费看|
成人黄动漫画免费网站视频|
久久亚洲欧美国产精品|
日韩网新片免费|
亚洲免费观看视频|
欧美精品久久天天躁|
亚洲综合无码一区二区三区|
精品国产自在现线看|
四虎成人精品在永久免费|
青青草成人在线|
国产成人va亚洲电影|
久夜色精品国产一区二区三区|
国产精品免费看久久久无码|
777国产偷窥盗摄精品品在线|
夜夜揉揉日日人人青青|
jizz日本黄色|
白嫩光屁股bbbbbbbbb|
四虎影视永久地址www成人|
西西人体高清444rt·wang|
国产在线高清视频无码|