Skip Navigation LinksHome > Categories > Code from a Category

Develop Numeric TextBox for ASP.Net Applications using VB.Net



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 2991
Add Date: 12/20/2011
ASP.Net framework has a server control “TextBox” which is widely used as input control in ASP.Net web application. TextBox server control allows users to enter text (alphabets, numbers, and special characters). You might face a requirement to allow users to enter only alphabets or numbers. One way to implement this is allow users to enter any text (alphabets, numbers, and special characters) and validate the entered text before submitting the page. Second way is two allow users to enter only the allowed characters.
To achieve this requirement, I have developed a custom server control named “NumericTextBox” which inherits ASP.Net’s default TextBox server control with new properties and functionalities. You can find below the source code of “NumericTextBox” server control written in VB.Net: "

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.