473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

TextBox which accepts only numbers!

I was created consultant registration page using ASP.Net], When we enter any characters in text box that will not accept.. TextBox which accepts only numbers!(numeric values only)!!
Oct 31 '11 #1
3 1981
use regular expression control with regular expression
[0-9]*
Nov 1 '11 #2
Frinavale
9,735 Expert Mod 8TB
Surya Varma's suggestion is good.
You could check out this article about how to check if a TextBox contains a number.
Nov 1 '11 #3
Thank you.
It's working
Nov 3 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ivo | last post by:
Hi, An array contains elements of the form , for example IVa, XIXb, LIX and LXIVc. Does anyone have a function which can sort this array in a way a human would expect it to, with the roman letters...
7
by: Qwert | last post by:
Hello, how do you create a textbox control that can only hold numeric values? Thanks, Qwert.
12
by: patang | last post by:
I have written the following code which allows user to enter only numbers and only one decimal point. This works fine. However, I want that user shouldn't enter a third number after decimal...
0
by: petit.primo | last post by:
hi!! I make a software in c# with visual studio 2005 and I would like to know if it's possible to restrict my textbox to put only numbers inside? thanks a lot for your answer hope to hear from...
3
LoanB
by: LoanB | last post by:
Hi I'm looking to ensure that my textbox only accepts numbers .. AND ... mathematical operators + - . / *. an dmaybe a blank space I can ensure that only number are included by using: ...
2
by: sdanda | last post by:
Hai My textbox accepts only positive numbers.It doesnot accept even floating points also.How to this?I wrote this code //Code Dim neg As Integer = 0 If (Not IsNumeric(envno.Text)) Or...
5
by: deepikashalini | last post by:
Hi, how to validate the textbox accepts 10 Numbers only. give sample code....
1
by: Joza | last post by:
Hi! How to allow only numbers and only ONE decimal seperator in textbox? Thnx.
4
by: srig | last post by:
hi every one.. i need to get id as input..wen d user gives input other than numbers like alphabets or special characters then it should display error message..isnumeric wil work in vb.net.. but i m...
5
by: subrat kumarnayak | last post by:
I want to enter only numbers in a textbox. How can I set the property of the textbox?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.