Solved

FilteredTextBoxExtender works but want to exclude zero

Posted on 2013-01-15
1
983 Views
Last Modified: 2013-01-15
I have a FilteredTextBoxExtender that allows numbers. Is there anyway to change it to alow numbers but not zero?

 <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server"
                TargetControlID="txtPrice"         
                FilterType="Numbers"         />

Open in new window

0
Comment
Question by:Camillia
1 Comment
 
LVL 21

Accepted Solution

by:
masterpass earned 500 total points
ID: 38780592
I don't think you can exlude zero unless you are going tp write a custom valdiator and validate the input since zero IS A number.

Another option would be to use a masked edit extender with a validator and set the max and min values in the extender.

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx

My personal choice would be to write a asp customvalidator or a asp rangevalidator and then validating the user input. That way you will have control over the data.

Hope this helps.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now