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 September 30th, 2008, 10:43 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding a search function

Hi All
I am new to asp.net and I need to add a search function/option to a customers page. I have several hundred records on this page.

Thanks


Brendan Bartley
__________________
Brendan Bartley
 
Old September 30th, 2008, 03:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You typically do this using SQL Server commands containing a LIKE expression:

SELECT Whatever FROM YourTable WHERE Description LIKE '%somevalue%'

Alternatively (and often better) you could use SQL Server's Full Text indexing services.

But, as is often the case it all depends. On your knowledge you already have, the database you want to use (SQL Server, Access, and so on) target platform (do you really want to do this in ASP.NET 1??) and so on.

So, tells us a bit more, tells us what you need help with and we may be able to help.

Cheers.

Imar

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search function talktome Excel VBA 1 September 6th, 2005 12:47 AM
search function elania MySQL 1 February 6th, 2005 07:00 PM
Search function Urban_Roughneck Beginning PHP 9 January 21st, 2005 08:31 AM
adding counts to search results gilgalbiblewheel Classic ASP Databases 0 August 6th, 2004 11:35 AM
Search Function rylemer Pro VB 6 1 March 24th, 2004 11:37 PM





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