Wrox Programmer Forums
|
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 June 23rd, 2007, 01:00 AM
Authorized User
 
Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default required field validator

hello friends!

plz help me out........!!!!

i have 18 textboxes on a single webform..

i want to use required field validator for all those textboxes...

can i use single required field validator for all those textboxes???
If yes then plz tell me how???


Regards,
Bhavesh(Ahmedabad)


 
Old June 23rd, 2007, 04:47 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No. You can, however, use a regular expression and Javascript to loop through the textboxes on your form and validate the data when the user clicks the submit button.

Alternatively, you could use the onBlur event of the textbox to call teh javascript function once the user has entered some data and moved onto the next box.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old June 30th, 2007, 03:20 AM
Authorized User
 
Join Date: Mar 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ya! but i dont know jscript :( can't it possible with vb only??







Similar Threads
Thread Thread Starter Forum Replies Last Post
Custmization in Required Field validator shivendra012 ASP.NET 1.0 and 1.1 Professional 1 April 19th, 2007 05:14 AM
What's wrong with required field validator? bhavna General .NET 1 February 8th, 2007 10:25 AM
Required Field Validator Issue vivek_inos ASP.NET 1.0 and 1.1 Professional 2 September 18th, 2006 07:57 AM
Required Field Validator RGB ASP.NET 1.0 and 1.1 Basics 3 March 31st, 2006 03:31 PM





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