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 April 10th, 2005, 06:59 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search Controls on a Form

Hi,

I want to check the controls on my form to test if there is data in any of them as if there isn't, there is no point in sending a request to the server when a user presses the button on my form. I have text boxes on my form that I want to search through. What's the best way to do it?

Thanks.
 
Old April 10th, 2005, 11:01 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

you can test each textbox to see if it has text OR make at least one a required field and use a required field validator
 
Old April 12th, 2005, 05:20 AM
Authorized User
 
Join Date: Mar 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hy,

U can use JavaScript to chk for validations as these will be
checked on the client machine itself.
whereas ASP Validation controls will carry out there purpose
on the server. And as an effect the code will be checked before
being sent to the server for processing.



**************************************************
It bcums FATAL wen my brain puts my eyes on Call-Waiting ! >|B-)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Function and User Controls hpox BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 January 8th, 2007 11:00 AM
Search Function and User Controls hpox ASP.NET 2.0 Professional 0 December 22nd, 2006 02:27 PM
AJAX Use Search with HTMl controls and Datagrid Nikhil1978 Access ASP 0 December 27th, 2005 02:25 AM
Search All Controls donnie_darko1983 ASP.NET 2.0 Basics 1 April 13th, 2005 01:41 PM
Controls on another form bjackman Access VBA 2 March 25th, 2004 01:30 AM





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