Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 24th, 2004, 11:25 AM
Authorized User
 
Join Date: Aug 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Baby_programmer Send a message via MSN to Baby_programmer Send a message via Yahoo to Baby_programmer
Default Regular Expression that not let number zero

Hi~!
Freinds i have A problem i am working on Shopping cart ..so the problem is that when i enter number zero to buy books, quantity of number 0...it goes on ...i want that i should not ..so please help me ....i'll be thankfull to u guys.i want the regular expression for that..

ashfaq
__________________
Baby Prgrammer
 
Old December 28th, 2004, 01:09 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can use a Compare Validator control:

Set these properties:

ControlToValidate: A TextBox I assume
Operator: Not Equal
ValueToCompare: 0
Type: Integer

This will allow the user to enter only numeric values other than 0.











Similar Threads
Thread Thread Starter Forum Replies Last Post
regular expression for number upto 2 decimal place swati_joshi ASP.NET 1.0 and 1.1 Basics 3 July 31st, 2008 11:23 AM
Regular Expression balajinrs Visual Studio 2005 0 July 24th, 2008 02:11 AM
Regular Expression Help Please rstelma ASP.NET 1.0 and 1.1 Professional 0 January 2nd, 2008 07:01 PM
Regular expression C# radhakrishnan1976 General .NET 1 February 19th, 2006 01:11 AM
Regular expression help!!! alex_read Javascript 4 August 18th, 2004 03:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.