How can I grantee that user enter only number in the textbox. If possible
accept ","and "." in the number. Can I do this? 6 1415
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com... How can I grantee that user enter only number in the textbox. If possible accept ","and "." in the number. Can I do this?
Take a look at the validator controls. You can validate that the textbox is
non-empty, has a number in it and you can even validate that the number be
within a particular range of values.
John Saunders
can someone give me validation string?
"John Saunders" wrote: "JIM.H." <JI**@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... How can I grantee that user enter only number in the textbox. If possible accept ","and "." in the number. Can I do this?
Take a look at the validator controls. You can validate that the textbox is non-empty, has a number in it and you can even validate that the number be within a particular range of values.
John Saunders
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com... can someone give me validation string?
It's not just a simple string. You should spend a little time reading about
the Validation controls, otherwise any "validation string" won't help you.
Do you need a pointer to the MSDN documentation on the validation controls?
John Saunders
"John Saunders" wrote:
"JIM.H." <JI**@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... > How can I grantee that user enter only number in the textbox. If > possible > accept ","and "." in the number. Can I do this?
Take a look at the validator controls. You can validate that the textbox is non-empty, has a number in it and you can even validate that the number be within a particular range of values.
John Saunders
that might help. I have another related question, I defined myVar as double
and it seems myVar=myTextBox.Text statement converts text to double without
problem. Do you see any problem in that?
"John Saunders" wrote: "JIM.H." <JI**@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.com... can someone give me validation string?
It's not just a simple string. You should spend a little time reading about the Validation controls, otherwise any "validation string" won't help you.
Do you need a pointer to the MSDN documentation on the validation controls?
John Saunders
"John Saunders" wrote:
"JIM.H." <JI**@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... > How can I grantee that user enter only number in the textbox. If > possible > accept ","and "." in the number. Can I do this?
Take a look at the validator controls. You can validate that the textbox is non-empty, has a number in it and you can even validate that the number be within a particular range of values.
John Saunders
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com... that might help. I have another related question, I defined myVar as double and it seems myVar=myTextBox.Text statement converts text to double without problem. Do you see any problem in that?
Yes. Don't let VB.NET do such things for you. Turn "Options Strict On", and
decide for yourself what the relationship is between text and string.
I suggest that Options Strict be turned on always except possibly at the
very beginning of a migration from ASP.
John Saunders
"John Saunders" wrote:
"JIM.H." <JI**@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.com... > can someone give me validation string?
It's not just a simple string. You should spend a little time reading about the Validation controls, otherwise any "validation string" won't help you.
Do you need a pointer to the MSDN documentation on the validation controls?
John Saunders
> "John Saunders" wrote: > >> "JIM.H." <JI**@discussions.microsoft.com> wrote in message >> news:6D**********************************@microsof t.com... >> > How can I grantee that user enter only number in the textbox. If >> > possible >> > accept ","and "." in the number. Can I do this? >> >> Take a look at the validator controls. You can validate that the >> textbox >> is >> non-empty, has a number in it and you can even validate that the >> number >> be >> within a particular range of values. >> >> John Saunders >> >> >> How can I grantee that user enter only number in the textbox. If possible accept ","and "." in the number. Can I do this?
User submitted from AEWNET ( http://www.aewnet.com/) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tony |
last post by:
Hello everyone...
Just wondering is it possible to have input mask in a textbox control? i
want my phone number textbox to force the user to enter in this format (__)
____ ____
Is there any way...
|
by: JPSutor |
last post by:
I currently have this code in my kepup event of a text box. It works
except for the fact that if the number
25,000 or any number is put in then the user arrows to the left of the
third zero and...
|
by: Andre Ranieri |
last post by:
I'm retouching our corporate web site that, among other things, allows
customers to log in and pay their invoices online. I noticed that on the
checkout page, the credit card number textbox...
|
by: Peter |
last post by:
I hate using the mask edit conrol so I created these two function to
format my phone numbers. Is there a way to consolidate these two
functions into one?
In this example say the textbox you...
|
by: Kd |
last post by:
I have the following set up to give me aresponse number R05-001
I would like it to reset to R06-001 at new year
ResponseNo: "R" & Right(Format(Date(),"yyyy"),2) & "-" &
Format(,"000")
This is...
|
by: VB Programmer |
last post by:
I have a credit card number textbox. How do I disable autocomplete for this?
This doesn't seem to work...
<asp:TextBox ID="txtPaymentCCNum" runat="server" Width="138px"...
|
by: kevinhd |
last post by:
I need to set a value to a particular textbox, but the textbox is binded to a bindingsource, therefore, I couldn't set a default value. Anyone can help?
Following is the code:
private void...
|
by: Drum2001 |
last post by:
I have a database where I need to query multiple items. Is it possible
to run a query based on a textbox where the information is delimited by
a comma.
Example:
Show me all names where...
|
by: Luzuko |
last post by:
I would like to know how can i restrict textbox input in VB.net using code instead of VB.net controls.
e.g If i want a user to type numbers only in a textbox(ID number textbox), how can i make...
|
by: Vaithyanarayanan |
last post by:
i have button on add, update and close and ultrawebgrid when i doubleclick the the cell in ultrawebgrid the datas are stored in corresponding textbox
my questions:
1.when i add the new data...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |