Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 July 29th, 2007, 11:36 PM
Authorized User
 
Join Date: Jun 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validation control help

hi,
in my asp.net webform,i am having a textbox to get date of birth from user and a submit button.
I have to validate the textbox in client-side itself.
I should use custom validator control for this validation.
The error messages shgould be displayed when i click submit button.

1.If i havent entered anything into textbox and click submit button an error message should be
displayed.

2.If date is not entered in correct format (mm/dd/yyyy),error message should be displayed.

Please give source code also...


 
Old July 30th, 2007, 12:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

"You should this" and "you should that" and please give you the source code sounds a little too much like your homework, right?

Why don't you take a look at the documentation and try to write some code yourself?

http://quickstarts.asp.net/QuickStar...n/default.aspx

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Control Problem manojbhoyar ASP.NET 1.0 and 1.1 Basics 4 June 20th, 2008 04:05 AM
Validation control and postback Chaotix ASP.NET 1.0 and 1.1 Basics 0 July 18th, 2006 12:31 PM
Validation control divsalar ASP.NET 1.x and 2.0 Application Design 1 December 25th, 2004 12:22 PM
Validation control ? basant ADO.NET 1 February 5th, 2004 04:46 AM





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