Search Text Field

I want to search text field and highlight the text. This is the code,

Code:

strText = cstr(Request.form("strText"))
strText = uCase(strText)
strTextWhere = ""
strTextWhere = " and (Specialisation
like '%"&strText&"%') "

I have a lot of data in different cases. I can do the search, let say i want to search by keyword project, it will display all the "project", "Project" and "PROJECT". But now i can only hightlight the "PROJECT" only. I think this is because of ucase(strText). Is there any way for me to highlight all (either lower, upper and mixed cases)?

View Replies


ADVERTISEMENT

Search A Field

can i search a database field for a specific word. for example i have a field in my user database(access database) called name and in that field i have more than one name that is separated by a comma such as john,james,mike,etc.

is it possible for a user to key in into a textbox for instance james and click search than only the name james will be shown. i just want to know is asp how the select statement will look like.

View Replies View Related

Search Results Looking In More Than One Field

I am having trouble getting my scripting to look in more than one database field when presenting results from one form field.

I can get it to work when there is more than one form field but I am trying to get the system to look in both a description field and keyword field then present the results.

The problem area is: Code:

formFields = Array("name", "shop", "suburb", "city")
dbFields = Array("shoptitle", "shopdesc", "shopsuburb", "shopcity")

The formfields and dbfields relate to each other. What is want is 'shop' to look not only in shopdesc but also in shopkeywords I have tried commas with out quotes, semicolons etc etc Code:

View Replies View Related

Asp Search Field Problem

I've had a site built for me but the programmer got on my tits for a variety of reasons - I know nothing about databases and need someone to help me sort out a fairly simple problem with two search fields.

(URL address blocked: See forum rules) is a site that will offer users the ability to sell and swap books online but the second and third search fields on the home page are returning no results.

View Replies View Related

Multiple Field Search

how to search multiple fields in an access database?Basically I want the code to search an entire table, field irrelevant.While I'm at it, does anyone know how to make the same search not care about word order or placement?

Such as:
Search string: "John went to the store"

returns the same results as

Search string: "The store went to John"

Just thought I would throw these out there and see what direction anyone can lead me.

View Replies View Related

Two Field Date Search

I'm trying to create a search page with a beginning and ending date, but I can't seem to get it to work. I am using SQL Server. Here is my statement:

SELECT *
FROM dbo.REQUEST2
WHERE REQUEST_DATE BETWEEN ' " & Request.Form("txtBeginDate") & " ' AND ' " & Request.Form("txtEndDate") & " '

This statement is not returning any records when I know there are existing records that fit the criteria that I'm entering.

View Replies View Related

Search A Date Field

I have a form where I offer the user to enter a 'fromDate' and a 'toDate' whereby I had hopes that it would help return records where the date was between those two values. My SQL query ends with: Code:

AND Date < " & request("fromDate") & " AND Date > " & request("toDate") & "
and a typical date entry in the table looks like: 2/8/2005 .

View Replies View Related

Using Wildcards To Search Number Field

I want someone to enter an area code in a field. They would hit search, and it would pull up all records whose phone number starts with that area code entered. Code:

View Replies View Related

How To Search A Database Field From Form Input

How to search a database field from form input? is it easy to do i like to have a html form from an html page that will call an asp page to do db search, if user enter a zipcode that match in the database it will pull all the infomation from both talbes and display on the screen

i have 2 tables related to each other
contact table
id, fname, lastname, contactid, email

zip table
id, zip, contactid, city

View Replies View Related

How To Search A Database Field From Form Input?

How to search a database field from form input? is it easy to do i like to have a html form from an html page that will call an asp page to do db search, if user enter a zipcode that match in the database it will pull all the infomation from both talbes and display on the screen

i have 2 tables related to each other:

contact table id, fname, lastname, contactid, email

zip table
id, zip, contactid, city

View Replies View Related

Problem With Dropdown Menu In Search Field

I have an access db called boards and a table in it called notes. I have 3 fields in the table ID, subject, and notes. I have code to search the db and display the results in the notes field.. This code works very well. I wanted to modify this code so that I can use a dropdown menu instead of type in the search field but i cannot get the dropdown menu code to display the search results. Code:

View Replies View Related

Search Text

I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two or three lines from the document that include the search terms.

View Replies View Related

Text Field

How i can get a text field that would accept apostrophes?

here's my code:

Title = Replace(Request.form("AddTitle")
Message = Replace(Request.form("AddMessage")
Author = request.Form("AddAuthor")
TimePosted = request.Form("AddTimePosted")
DatePosted = request.Form("AddDatePosted")
sql="INSERT into NEWS (title, message, author, date_posted, time_posted) "
sql = sql & "VALUES ('" & Title & "', '" & Message & "', '" & Author & "', '" & DatePosted & "', '" & TimePosted & "') "
Conn.execute(sql)
Response.write sql

View Replies View Related

Text Field!

i am using ASP with recordset I am using nvarchar field and TEXT field in ms sql server
i update it as follows

rs("thenvarcharfield") = request.form("somedata")
rs("thetextfield") = request.form("someotherdata")
rs.Update

at one page it works fine and when i use the same kind of code to update another TEXT field it doesn't update and the I.E. loading bar increases very slowly and the next page never loads someone suggested to use .appendchunk i used rs.appendchunk and i got the error "object doesn't support this property or method" he also said that .appendchunk cannot be used to update nvarchar.

i removed the code to update TEXT field and the page loaded as expected (normally)!
Why one text field worked fine while the other didn't?

View Replies View Related

Highlight Search Text

how to highlight the search text on the asp page when its displayed after being fetched from database[using LIKE]
any vbscript technique?

View Replies View Related

Site Search-text

im working on a script which will search the specified keyword within files, for this im using FileSystemObject which is working file with html/text/asp files but is there any way to search the text within .doc/.pdf files too?

View Replies View Related

Full Text Search...

if there is a way to do a text search through pdf documents?

If there is, can someone show me how, or at least point me in the direction of a good tutorial?

View Replies View Related

A Full Text Search

I have developed a website with ASP.NET Jscript. Im fairly new to development so i used DreamweaverMX and Webmatrix which was very useful. Now I want to enhance it further by adding a search facility into my website and thus providing users to actually find contents within my webpages and display the same.

View Replies View Related

Highlighting Search Text

Does anyone use a funtion to highlight search terms (if they have a search facility on their site). Basically, I would be sending the search terms from a form field into a results page.

If there are results I would like the search terms to be highlighted. One problem that I could think while using "replace" is that capitalisation would not be maintained.

View Replies View Related

Search In A TEXT File

I have one TEXT file that I use to log download information from website.
The file will have unique Login ID for the downloads. When the user will
come for next time for download the LOG entry should go under the same
section (same ID number) so for this I need to search the text file for the
ID and if the ID is found the program should append the NEW LOG entry to the
end of Section. (section mark can be a line of ***** ) (mean just before the
***** line)

View Replies View Related

Validation For Text Field

I need help regarding the string. In HTML page i have a text field to enter Name. How do i check whether its valid name or not, on the server side.

View Replies View Related

Text Field Control

I want to create two radio button
Yes and No. Only on select that radio button 'Yes',
the text field should get enabled.
How to do this?

View Replies View Related

Text Field Acceptance,

i have a table in which i have many text boxes, they are named as a1,a2,a3,a4 to a16 the next row is b1,b2,b3 to b16 and so on up to G1,G2 etc, where the user enters his data, what i want to do is only allow the user to enter numbers, which can have decimals if required,

how can this be done, also i have another set of textboxes through which i want to loop and prevent user the user from entering the same data in more then one box how can this be done any help will be appreciated thank you.these are the text boxes a1,b1,c1,d1,e1 etc which is actually the first column in the table.

i have created the following array:

letterArray[0] = 'A'
letterArray[1] = 'B'
letterArray[2] = 'C'
letterArray[3] = 'D'
letterArray[4] = 'E'
letterArray[5] = 'F'
letterArray[6] = 'G'

how can i loop through to achive the above.

View Replies View Related

6 Characters From The Text Field

May I know how to restrict the user to key in at least 6 characters from the text field by using asp? If possible

View Replies View Related

Updating A Text Field

I am trying to write some code that inserts or updates a text field in my SQL Server 2000 database. The SQL statement is created using a submit from a form, and the text is coming from a <textarea>, and therefore being placed into the SQL statement via a Request("field"). However, due to limitations in SQL Server 2000 and text fields, I can not use a simple Update or Insert command with text over 8000 bytes.

Does anybody have any sample statements that will help me update that field with larger amounts of data? I have tried using the WRITETEXT function and UPDATETEXT function with little or no success.

View Replies View Related

Text Field Characters

i have a form that has two hidden fields.The first hidden field will has a value like this 'EM12HILL.JPG'.The second hidden field has a value like this 'AA01'.What i would like to happen is when submit button is pressed, the characters in the first hidden field will change to the following 'AA01HILL.JPG', as they are passed to another form.

View Replies View Related

Clearing A Text Field

How do I clear the data in this field before using the date function.?

<input type="text" size=35 name="DepartCentralDate" value="<%=x_DepartCentral %><%= FormatDateTime(Date, 1) %> &nbsp;&nbsp;<%= FormatDateTime(Now, 3)%>">

View Replies View Related

Combine Text + Rs.field

Is it possible to recall a variable with the combination of text + rs.field? i want to recall the variable "speler1", at the place weher rs("speler") is 1. It's probably again easy.

View Replies View Related

Shorten Text Field

I been searching google but I can't find how to shorten a text field and if it has been shortened to place a space and triple dot (...) after it. So if the text field was 75 characters long it would shorten it to 50 and add " ...". Is it also possible to shorten it to 50 to the nearest word? This is what I got so far: Code:

...
<td>
<p>
<% = left(rs("my_text").value,50) & IF rs("my_text").count > 50 Then Response.Write(" ...") End If %>
</p>
</td>
...

View Replies View Related

Updating A Text Field

In a form I have one pulldown menu, and one text field. Both MUST get their values from an Access database they connect to. Without submitting the form, how do I change the value appearing in the text field by changing the selection in the pulldown menu? Remember both the text field and the pulldown menu MUST get their values from a database.

View Replies View Related

Text Field Format

I need a user to follow a format. For example entering a date. I need the user to enter a date in this format MM/DD/YY. How do I check to see if they followed that format?

I need the user to enter a currency amount without the "$" sign. How do I check to see if the Request.Form("price") value has a "$" sign in it? I guess I need to know how to parse a string in ASP.

View Replies View Related

Text Field Value & Label

Is it possible to make the following codes Value = idSpecies but its Label TimberSpecies?

<input name="f1" type="text" id="f13" value="<%=((rsResults.Fields.Item("idSpecies").Value))%>" size="33">

I have a database with the following...

Table Name.....Query1
Field Name......idSpecies..........Auto Number
Field Name......TimberSpecies...Text Field

View Replies View Related

Passing A Text Field From Asp To Asp

I have an asp page that allows cdont mailing of form field values to persons matching slected criterea in their profile.

Works good if the user goes straight from the form to the email-making asp.

Then the user asked for a proofreading screen and what seemed simple took a bad turn.

When I try to pass from the proof reading screen to the asp that actually sends the email I only get the first word. as soon as a blank is encountered in the text it thinks it it done. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved