您目前尚未登陆,请选择【登陆】或【注册
首页->控件插件->多功能文本框控件源码及示例>>Demo/Default.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能文本框控件源码及示例
当前文件:文件类型 TextControl/Demo/Default.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 2 3<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %> 4 5<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6 7<html xmlns="http://www.w3.org/1999/xhtml" > 8<head runat="server"> 9 <title>无标题页</title> 10 <style type="text/css"> 11 <!-- 12 body{WIDTH: 100%; margin:0; 13 font-size:12px; 14 background-color:#f8f8f8; 15 } 16 .txtfocus 17 { 18 border:1px solid #6699CC; 19 background-color:#F3FDEB; 20 } 21 .txtblur 22 { 23 border:1px solid #C0C0C0; 24 background-color:#ffffff; 25 } 26 --> 27 </style> 28</head> 29<body> 30 <form id="form1" runat="server"> 31 <div> 32 <table style="width: 729px"> 33 <tr> 34 <td style="width: 119px; height: 18px"> 35 字符型:</td> 36 <td style="width: 556px; height: 18px"> 37 <cc1:ZLTextBox ID="ZLTextBox1" runat="server" onblurCssName="txtblur" onfocusCssName="txtfocus" InputType="varchars" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 38 style="color: #cc3366">varchars</span></td> 39 </tr> 40 <tr> 41 <td style="width: 119px; height: 18px"> 42 数字型:</td> 43 <td style="width: 556px; height: 18px"> 44 <cc1:ZLTextBox ID="ZLTextBox2" runat="server" InputType="number" onblurCssName="txtblur" onfocusCssName="txtfocus" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 45 style="color: #cc3366">number</span></td> 46 </tr> 47 <tr> 48 <td style="width: 119px; height: 18px"> 49 浮点型:</td> 50 <td style="width: 556px; height: 18px"> 51 <cc1:ZLTextBox ID="ZLTextBox3" runat="server" FloatLength="3" InputType="formatNumber" onblurCssName="txtblur" onfocusCssName="txtfocus" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 52 style="color: #cc3366">formatNumber,<span style="color: #000000">floatlength属性为<span 53 style="color: #cc3366">3(小数位数)</span></span></span></td> 54 </tr> 55 <tr> 56 <td style="width: 119px; height: 18px"> 57 选择日期:</td> 58 <td style="width: 556px; height: 18px"> 59 <cc1:ZLTextBox ID="ZLTextBox9" runat="server" InputType="date" onblurCssName="" onfocusCssName="" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 60 style="color: #cc3366">date,<span style="color: #000000">IsDisplayTime为<span style="color: #cc3366">true(显示时间)</span></span></span></td> 61 </tr> 62 <tr> 63 <td style="width: 119px; height: 18px"> 64 大写字母:</td> 65 <td style="width: 556px; height: 18px"> 66 <cc1:ZLTextBox ID="ZLTextBox4" runat="server" InputType="Upper" onblurCssName="txtblur" onfocusCssName="txtfocus" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 67 style="color: #cc3366">Upper</span></td> 68 </tr> 69 <tr> 70 <td style="width: 119px"> 71 小写字母:</td> 72 <td style="width: 556px"> 73 <cc1:ZLTextBox ID="ZLTextBox5" runat="server" InputType="Lower" onblurCssName="txtblur" onfocusCssName="txtfocus" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 74 style="color: #cc3366">Lower</span></td> 75 </tr> 76 <tr> 77 <td style="width: 119px"> 78 中文:</td> 79 <td style="width: 556px"> 80 <cc1:ZLTextBox ID="ZLTextBox8" runat="server" InputType="ChineseLanguage" onblurCssName="txtblur" onfocusCssName="txtfocus" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 81 style="color: #cc3366">ChineseLanguage</span></td> 82 </tr> 83 <tr> 84 <td style="width: 119px"> 85 电话号码:</td> 86 <td style="width: 556px"> 87 <cc1:ZLTextBox ID="ZLTextBox6" runat="server" InputType="phone" onblurCssName="txtblur" onfocusCssName="txtfocus" ShowMessage="请输入正确的电话号码!" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 88 style="color: #cc3366">phone,<span style="color: #000000">ShowMessage属性为友好信息提示内容</span></span></td> 89 </tr> 90 <tr> 91 <td style="width: 119px; height: 26px;"> 92 IP地址:</td> 93 <td style="width: 556px; height: 26px;"> 94 <cc1:ZLTextBox ID="ZLTextBox7" runat="server" InputType="IP" onblurCssName="txtblur" onfocusCssName="txtfocus" ShowMessage="请输入正确的IP" CssClass="txtblur"></cc1:ZLTextBox>InputType属性为<span 95 style="color: #cc3366">IP,<span style="color: #000000">ShowMessage属性为友好信息提示内容(待完善合法性)</span></span></td> 96 </tr> 97 </table> 98 99 </div> 100 101 </form> 102</body> 103 104</html> 105
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:多功能文本框控件源码及示例
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号