Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 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 August 16th, 2007, 07:14 AM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Building a data search engine

Looking for code examples (C#) for ASP 2.0 that provides a model to create dynamic sql strings from user defined "arguments" supplied by text box, drop down list (single and multi select), radial buttons on an input form. Looking for best practices in persisting this input data to database that assists in the implementation of the "search" engine/SQL query generation. I'm not looking for optimizing browser search engines like "google" etc.

Appreciate it... thanks

 
Old August 16th, 2007, 05:42 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

One of the most important best practices is to search MSDN for examples of "SQL parameters", you capture user data and store them in parameters and then incorporate the parameters into the SQL query. Parameters protect your database from hackers looking to get into your database records. Another important security related feature to check on is to look up "stored procedures". Again, it keeps your database queries better protected, so that your code behind simply makes a reference to a stored procedure for your application instead of having SQL in the actual C# code.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
search engine raaj Beginning PHP 1 August 1st, 2007 06:52 AM
search engine rajuru PHP Databases 3 December 5th, 2004 01:22 AM
Search Engine snowydust Pro VB Databases 6 October 14th, 2004 03:59 AM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM
Search engine that search through local drive! wenzation Classic ASP Basics 0 August 26th, 2003 09:15 PM





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