惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
U
Unit 42
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Full Disclosure
月光博客
月光博客
Engineering at Meta
Engineering at Meta
博客园_首页
The Register - Security
The Register - Security
G
Google Developers Blog
The Cloudflare Blog
博客园 - Franky
K
Kaspersky official blog
A
Arctic Wolf
Scott Helme
Scott Helme
C
Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
NISL@THU
NISL@THU
AI
AI
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Vercel News
Vercel News
T
Tor Project blog
P
Privacy International News Feed
D
Docker
I
Intezer
L
LangChain Blog
P
Proofpoint News Feed
Security Latest
Security Latest
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
博客园 - 聂微东
AWS News Blog
AWS News Blog
Martin Fowler
Martin Fowler
P
Privacy & Cybersecurity Law Blog
V
V2EX
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
The Hacker News
The Hacker News
T
Tenable Blog
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog

博客园 - DarkAngel

好久未登陆 签到 Silverlight 3正式版新鲜出炉 Silverlight3的7个新功能[转] 读取DWG文件中的文本信息(CAD2004) 一个端口扫描的小程序 WEBPART结合实际的应用(.Net2005) 一个很老的故事: 水和鱼的故事 Browser.Net浏览器c#开发(开源) 吉祥三宝(设计篇) - DarkAngel - 博客园 将指定网页添加到收藏夹的方法(c#) Microsoft.Press.Microsoft.Visual.C.Sharp.2005.Step.by.Step.Oct.2005 取客户端MAC地址的方法 关于在活动目录(ACTIVE DIRECTORY)中创建组织单位和用户 Exchange 2k的安装与删除。 无 Cookie 的 ASP.NET 一个任意获得页面控件的方法 跨页面的多选功能实现 买不起笔记本,只好自己动手做一个啦-!(转)
带验证功能的的TextBox
DarkAngel · 2006-09-23 · via 博客园 - DarkAngel

 TextBox是用的比较多的控件,有时候我们希望用户的输入内容和符合我们的输入要求,按这个想法在原有控件的基础上,做了个能控制输入的TextBox,有兴趣的可以用用.原码如下.

  1using System;
  2using System.Collections.Generic;
  3using System.Text;
  4using System.ComponentModel;
  5using System.Web.UI;
  6using System.Web.UI.WebControls;
  7using System.Drawing;
  8namespace Jsl.Web.UI.WebControls
  9{
 10    /// <summary>
 11    /// 封装的TextBox,可以设置为文本框,整数文本框,浮点数文本框
 12    /// 
 13    /// </summary>

 14    public class JslTextBox : TextBox 
 15    {
 16
 17
 18        IWebControl 成员
135
136     
137
138       
139       
140    }

141    
142    /// <summary>
143    /// 文本框对象
144
145    /// </summary>

146    public enum PreeClass
147    {
148        /// <summary>
149        /// 只能输入英文和中文
150
151        /// </summary>

152        只能输入英文和中文 = 0,
153        /// <summary>
154        /// 只能输入中文
155        /// </summary>

156        只能输入中文 = 1,
157        /// <summary>
158        /// 禁止输入中文
159        /// </summary>

160        禁止输入中文 = 2,
161        /// <summary>
162        /// 禁止输入数字
163        /// </summary>

164        禁止输入数字 = 3,
165        /// <summary>
166        /// 只能输入数字
167        /// </summary>

168        只能输入数字 = 4,
169        /// <summary>
170        /// 禁止输入英文
171        /// </summary>

172        禁止输入英文 = 5,
173        /// <summary>
174        /// 只能输入英文
175        /// </summary>

176        只能输入英文 = 6
177    }

178}