NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Active Server Pages and SQL Server
3034 Active Server Pages and SQL Server http://idm.internet.com/articles/200002/wd_02_25_00bb.html As a web site grows, finding content on the site becomes increasingly difficult. To combat the difficulty of finding relevant information on a large site, many developers turn to writing a search engine for their site. This article discusses how to implement such a system using Active Server Pages and SQL Server.

There are two "types" of search engines. Both take a search string from the user to begin, but what, exactly, they search differs. A completely dynamic search engine for a completely dynamic web site will hit a database table which ties an article URL to the articles description. The database can then compare the user's search request to the descriptions of the available articles and return the relevant URLs.

Another approach is to do an actual text search through each of the files. For example, say that the user searched for "Microsoft." Your search engine would then look through all of your HTML files and return the URLs of those which had the word "Microsoft" somewhere in the document. Such a system is used for this web site's search engine. In my opinion, it is much easier to write such a system described in Perl (which this system is written in), than in Active Server Pages; however, it is quite possible to write a text-finding search system in ASP.

In this article I plan to implement the former search engine, the dynamic search engine. For this example I will make a table called ArticleURL, which will have the following definition
ASP > Tips and Tutorials > Searching Oct 10, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Active Server Pages and SQL Server:


Other links at ASP > Tips and Tutorials > Searching
This article, by Jerry Wood, shows a nifty little script, which, with just one ASP page, allows you to dynamically search a column in a table using a string comparison. This one script can be used over and over due to its dynamic nature! Hopefully this script will save you valuable time by cutting down on the often repetitive task of creating small, searching scripts!

So, you may be wondering how to use this script! Well, trust me, it isn't difficult. Let's say
Category:

There are many ways to implement a search on your site - I asked you to pick from three of them in the search survey I did recently.
The method that most people picked entailed me reading every page on the site and hand-picking keywords. These keywords were entered into a new table, ArticlePages. You can get the source code for the entire site, including the database
Category:

As a web site grows, finding content on the site becomes increasingly difficult. To combat the difficulty of finding relevant information on a large site, many developers turn to writing a search engine for their site. This article discusses how to implement such a system using Active Server Pages and SQL Server.

There are two "types" of search engines. Both take a search string from the user to begin, but what, exactly, they search differs. A completely dynamic search engine for a completely dynamic web site will hit a database table which ties an article URL to the articles description. The database can then compare the user's search request to the descriptions of the available articles and return the relevant URLs.

Another approach is to do an actual text search through each of the files. For example, say that the user searched for "Microsoft." Your search engine would then look through all of your HTML files and return the URLs of those which had the word "Microsoft" somewhere in the document. Such a system is used for this web site's search engine. In my opinion, it is much easier to write such a system described in Perl (which this system is written in), than in Active Server Pages; however, it is quite possible to write a text-finding search system in ASP.

In this article I plan to implement the former search engine, the dynamic search engine. For this example I will make a table called ArticleURL, which will have the following definition
Category:

I was thinking one day, wouldn't it be nice if any given web site knew what I was specifically looking for when I arrived? I think it would be very helpful.

Then I started thinking about it a little more, and decided it was time to do something about it. At first, I sat down and wrote a letter to my congressman, but then decided he probably would have no idea what I was talking about, so I would have to resort to getting down and dirty with the code myself.

My Father-in-law runs a small e-commerce site that I designed. Which was a perfect platform to test out my new idea once completed. I sat down, wrote the code, uploaded it to the server and tested it out. Much to my chagrin, it worked perfectly, and proved to be a very good idea.

Most web trend articles say that, if a user does not find what they are looking for in 3 clicks or less, the majority of them will move on to greener pastures. This code will bring them to exactly where they want to go in 1 click
Category:

We will begin with creating a set of ASP pages to index the site content and then insert into the database. Here you will learn how easy it practically is to deal with databases in ASP. All statements of SQL select, insert, update and delete will come into play.
Category:




Main Category
199
2044
829
286
175
1801
1439
913
1177
7568
70
917
59
2238
175

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 19871
Categories: 1275
Registered Users: 766
Mailing List Subscribers: 2047
Unique Outgoing Hits: 231128

Pagerank Statistics
PR 10
1 site(s)
PR 9
14 site(s)
PR 8
43 site(s)
PR 7
233 site(s)
PR 6
687 site(s)
PR 5
1778 site(s)

PHP News