Boards.ie uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Click here to find out more x
Post Reply  
 
Thread Tools Search this Thread
07-07-2001, 13:24   #1
Paladin
Registered User
 
Join Date: Dec 1999
Location: Cork
Posts: 2,287
ASP for searches\generating html page?

I need to know what would be the best thing to use to search a database (text based probably, and generated by VB) and return a html page with the values it gets filled into templates or something suitable. Ive no experience at this, so any advice on what language would be simplist to use for this task.

Ive seen a few that use asp that look like they do the job (search for values withing a certain range and return a set of results as a web page).

What exactly does asp use anyway? What code is it based on?

Thanks.
Paladin is offline  
Advertisement
07-07-2001, 13:58   #2
Kali
Registered User
 
Kali's Avatar
 
Join Date: Feb 1998
Location: Essex, UK.
Posts: 6,549
Send a message via Yahoo to Kali
If your using a database type structure or an actual SQL Server or similar, by filling it with values from a VB program then your best bet is ASP, as its based on or is (i dont know the history) VB itself and will therefore be able to understand the values without any pre-post formatting on your part, although any language should be able to read from the db regardless.
Kali is offline  
08-07-2001, 19:00   #3
The Corinthian
Moderator
 
The Corinthian's Avatar
 
Join Date: Jun 2001
Location: The 2nd Circle of Hell
Posts: 14,547
Quote:
<font face="Verdana, Arial" size="2">I need to know what would be the best thing to use to search a database (text based probably, and generated by VB) and return a html page with the values it gets filled into templates or something suitable.
</font>
If your db is CSV based you might register it on the server using a DSN and access it using ODBC. If you can't register a DSN hack a driver for it.

Failing all that you could do some sort of text search function, in ASP-VBS, based on something like this v. basic function:

Function isPresent(sNeedle, sHaystack)
If InStr(LCase(sHaystack), LCase(sNeedle)) Then
isPresent = True
Else
isPresent = False
End If
End Function

Better still use regular expressions in your text search, which are now supported in VBS.

Quote:
<font face="Verdana, Arial" size="2">
Ive seen a few that use asp that look like they do the job (search for values withing a certain range and return a set of results as a web page).
</font>
Most of these ten to use M$ Index Server with does all the complicated search stuff for you and con be implemented via ASP scripts. Unfortunately Index Server is full of security holes, so I would not recomend using (or even installing) it

Quote:
<font face="Verdana, Arial" size="2">
What exactly does asp use anyway? What code is it based on?
</font>
None Actually. ASP is more of an architecture than a language. Essentially it allows one to code on the server by accessing a number of simple objects. What language you use to access these objects is up to you, although VBScript is the most popular (cheaper to hire VB code monkeys, you see ). ASP can also be coded using JavaScript, PerlScript and (I kid you not) COBOL

The Corinthian is offline  
09-07-2001, 22:42   #4
Paladin
Registered User
 
Join Date: Dec 1999
Location: Cork
Posts: 2,287
Cool. Thanks. That sounds easier than I expected. Hopefully it will be
Paladin is offline  
16-07-2001, 01:11   #5
mewso
Moderator
 
mewso's Avatar
 
Join Date: Feb 1998
Location: To the left
Posts: 6,918
You can do simple searches using asp to send sql 'like'' statements to the database. That normally can do the job but either way Pal give me a shout if you need any help as I'm well up on the client to database stuff. It's my job
mewso is offline  
Post Reply

Quick Reply
Message:
Remove Text Formatting
Bold
Italic
Underline

Insert Image
Wrap [QUOTE] tags around selected text
 
Decrease Size
Increase Size
Please sign up or log in to join the discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search