How to validate the textboxes to avoid wrong information..for ex: I have a textbox phoneNum in that users can only enter the nums only. how to validate that?
I am using a datatable with different columns. Datatype of each column is Double. Now I want to format that column to Indian positioning number system. e.g(54,36,54,656.00). How can I do this???
it's a multiline TextBox the MaxLength property does not work. At the moment I only see the option to use a CustomValidator with checking TextBox1.Text.Length on server side and perhaps in addition some Javascript client side validation.But isn't there a simpler way to do this, using the standard ASP.NET validators (RegularExpressionValidator, RangeValidator, CompareValidator, etc.)
In my project i want to send acknowledge message on mobile after completion of perticular work that i have done.now i want to trace mobile's area and some few information and zone .
I have a form for the user to add a Contact's details. Within this form I have fields to enter telephone, mobile, fax numbers etc.
Each have a separate textbox for country code, area code and number. Basically, what I want to do is have validation on these fields so that all or none of the textboxes are filled.
So if the user just adds a number in they are required to enter also the country code and the area code. Or if they don't enter any of the details then the validation will not kick in.
I have done registration and confirmation link send to email to verify the email id
now i want to confirmation mobile number when registering their detail so i generate the random code and send to mobile no then user have to type thier random code to verify the mobile no.
I have been trying to figure out how to use <asp:requiredfieldvalidator> with ValidationExpression but am having a difficult time understanding the syntax of ValidationExpression. I'd like to make sure one textbox's number (1-12) is equal to or higher than the other textbox's (1-12) number. How is this accomplished and what's the syntax of ValidationExpression (hopefully I'm stating the question correctly).
I am using the asp.net and framework 2.0 with Ajax enable web.i have a text box and when user will enter "a" or number in this will search the name started from "a" character or number if he or she enter the number basically we can say live-search.
Employee search: Textbox.In this text box she/he will enter the first character of name or first number of employeeno and according to the a character name will search in list.
I have requirment to prevent enteries of same number occuring multiple times. Like 99999,1111111, 6666, are invalid. How can I acomplish this? Is there any general license validator funtion some one has writte?
I am working on a project where i need to retrieve the mobile phone's PIN number.
Actually, the aim of this is.. sales man visits the mobile stores and fills the details through the mobile phone. After submitting the details from the mobile, we will get a mail regarding that. What we have to do is, apart from the details the sales person send, we need to know the sales person location and the mobile PIN numnber.(The mobile phone we are using is BlackBerry)
how can i validate a textbox with 5 number only are allow to fill in and first number must number 3. For example like 3XXXX,3YYYY (X and Y are number).