How to make a textbox to accept only number? when my label.text is gms or rs or knot, then respective textbox accept only numbers. when label.text is character it has allow only character value.
Example:gms: 1200
character:black
knot:5
rs:80
character:pink
Thanks in advance.
Sumit Kesarwani
23-Sep-2013Apply a regular validator on your text box with validation expression "^[0-9]" which accept only numbers initially make it disabled
you can then enable disable it according to the text of your label making the text box to accept all or only numbers.