Solved

FilteredTextBoxExtender works but want to exclude zero

Posted on 2013-01-15
1
1,069 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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.…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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