asp:net 4.0 Vis Basic [英] asp: net 4.0 Vis Basic
问题描述
我试图拥有 用户名和密码文本框只接受0到9和a到z。
大写和小写。
我希望所有其他密钥都被阻止。 (tab和enter除外)
我只能在选项卡或输入键后获取文本,这太晚了。
我无法触发keydown或关键新闻事件。
我正在使用Vis Basic 2010 web Developer express和asp:net 4.0
我正在使用母版页。
我已经尝试了人类已知的每个文本框属性。
命名空间是:
选项明确开启
选项严格开启
进口 系统 < span style ="font-size:small">
导入 System.IO
导入 System.ComponentModel
导入 System.Windows.Forms
导入 System.Resources
导入 System.Drawing
导入 System.Web.UI.WebControls
导入 System.Data.SqlClient
导入 System.Data
导入 系统。 对象
导入 系统。 属性
导入 System.ComponentModel。 BindableAttribute
导入 系统。 EventArgs
导入 System.Windows.Forms。 KeyPressEventArgs
导入 System.Windows.Forms。 KeyEventArgs
导入 System.Configuration
导入 系统。 环境
任何帮助都会很棒。
< blockquote>嗨Arnett,
感谢你的帖子。这个论坛主要讨论用VB.NET的Windows destop应用程序问题。对于ASP.NET问题,你可能需要http ://forums.asp.net/寻求支持。
节日快乐,
Im trying to have username and password textboxes to accept 0 to 9 and a to z only.
upper and lower case.
I want all other keys blocked. ( except tab and enter )
I can only get the text after a tab or enter key, which is too late.
I cannot get the keydown or key press events to fire.
I'm using Vis Basic 2010 web Developer express and asp:net 4.0
Im using a master page.
I have tried every textbox property known to mankind.
Namespaces are:
Option Explicit On
Option Strict On
Imports System
Imports System.IO
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Resources
Imports System.Drawing
Imports System.Web.UI.WebControls
Imports System.Data.SqlClient
Imports System.Data
Imports System.Object
Imports System.Attribute
Imports System.ComponentModel.BindableAttribute
Imports System.EventArgs
Imports System.Windows.Forms.KeyPressEventArgs
Imports System.Windows.Forms.KeyEventArgs
Imports System.Configuration
Imports System.Environment
Any help will be so great.
Hi Arnett,
Thanks for your post. This forum mainly discuss Windows destop application issue with VB.NET. For ASP.NET issue, you may need to http://forums.asp.net/ for support.
Happy holidays,
这篇关于asp:net 4.0 Vis Basic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
登录 关闭
![](https://huajiakeji.com/Content/Images/qrydx.jpg)