473,320 Members | 2,189 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.

Some control to Validate in asp.net

I need to validate that a user enters (in a TextBox) only the values 1, 2, 4.
6, 8, 10 or 20. Using the RangeValidator control, it only accepts the min and
max value. Is there any other control or property to do it?
Nov 16 '05 #1
1 1102
For this type of validation there is no built in control. You need to
write a custom validator [1].

[1]
http://msdn.microsoft.com/library/de...omfunction.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 19 Nov 2004 10:01:08 -0800, "Andres Romero"
<An**********@discussions.microsoft.com> wrote:
I need to validate that a user enters (in a TextBox) only the values 1, 2, 4.
6, 8, 10 or 20. Using the RangeValidator control, it only accepts the min and
max value. Is there any other control or property to do it?


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: TJS | last post by:
I need to add validation to drodownlist control but it sends back an error message that says: "System.Web.UI.WebControls.DropDownList' does not allow child controls" the code is : If...
3
by: Raed Sawalha | last post by:
I created a very simple user control which contains lable and drag the control to page <%@ Page language="c#" Codebehind="Validate.aspx.cs" AutoEventWireup="false" Inherits="Learning.Validate"...
1
by: T.S.Negi | last post by:
Q1. In ADO we have RecordCount Property of the RecordSet object. In ADO.net what is the Replacement of RecordCount property? Q2. How to create Hotkey in Tabcontrol of Visual basic.net. Q3. If...
5
by: norton | last post by:
Hi All, I am writing a simple win form which contains a button, when user click the button i want to validate all the other textbox and see if there is anything goes wrong may i know how...
2
by: Marc Robitaille | last post by:
Hello, I built myself a calendar control. I want the control to be able to be validated by .NET validation controls. So I added the ValidationPropertyAttribute("Text") to my class declaration of...
6
by: Bill Cohagan | last post by:
Is it possible to have a validation control whose ControlToValidate is in fact a hidden control? When I try this I find that the validator apparently does not fire. If I make the control...
5
by: Tom | last post by:
Hi, I'm new to asp.net 2.0 and I'm working on creating a web site that allows user to log into the web site and view information pertaining to them such as accounts, sales, and other information...
3
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
I have VS 2005 (C#) There is a control numericUpDown so you can spin numeric values. What I need to do is to spin date (+- one day). How to do that? Moreover, I want a user to type the date as...
2
by: zaifi | last post by:
I how to use asp login control with oracle databse..please explain me and source code.
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
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...
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: 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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.