Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 10th, 2005, 06:59 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
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.
  #2 (permalink)  
Old April 10th, 2005, 11:01 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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
  #3 (permalink)  
Old April 12th, 2005, 05:20 AM
Authorized User
 
Join Date: Mar 2005
Location: , , India.
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-)
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:00 AM
Search Function and User Controls hpox ASP.NET 2.0 Professional 0 December 22nd, 2006 01:27 PM
AJAX Use Search with HTMl controls and Datagrid Nikhil1978 Access ASP 0 December 27th, 2005 01: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 12:30 AM



All times are GMT -4. The time now is 12:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.