Trim String And Indexing Server
Ok, I have this code:
For i = startCt To endCt
' Get the document title. If it's blank, set it to "Untitled".
Dim docTitle,path,desc
Dim tObj
Set tObj = results1(i)
docTitle = tObj("title")
path = tObj("vpath")
desc = tObj("desc")
.......
Now, results1 comes from the ms indexing server.
Problem with some of the results is the title is an empty string, so no link.
If I query the catalog in comp mgnmt, no problems.
So, indexing problem or something else.
I can use the path and get the doc name there if empty.
Also, does asp have a string.trim like .net? ....
View Replies
ADVERTISEMENT
How do i cut the last 4 characters in a string?
I know how to cut the 4 first, but i need to cut the last!
I have a image name like testimage.gif and I want to cut away .
View Replies
View Related
I currently use MS Indexing Service to search my htm and aspx pages.
I recently downloaded the IFilter tool from Adobe.
When I now do a search it still does not pick up any text in my PDF's.
My PDF's are being indexed and I have stopped / started the Catalaog / Service.
I find it hard to get any documention on the IFilter tool that is downloadable from Adobe.com.
View Replies
View Related
What do I need to do to enable CDONTS om my macine to make it working
I'm testing the code:
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "xyz@xxxxx.com"
objCDO.From = "zyx@zzzzz.com"
objCDO.Subject = "TESST CDONTS MAIL"
objCDO.Body = "SOME TEXT TO SEND OVER"
objCDO.Send
Set objCDO = Nothing
It gives me an error after Set objCDO =
Server.CreateObject("CDONTS.NewMail")
Server object, ASP 0177 (0x800401F3)
Invalid class string
View Replies
View Related
i'm having some trouble with the trim function. I have a date 04/18/1982. I want enter the value 1982-04 into the database. The code i'm using is:
strEXPDT = replace(right(left(request.form("Expiration_Date")2)4),"'","''")
View Replies
View Related
I am constantly in need of help, I am back again. I am slowly, slowly getting my page to work. Here is the latest of my queries. I want to automatically make a username by trimming the first character of the first name and taking the entire last name, and putting it in strUserName, I am a little iffy about TRIM (what else is new) rofl. Anyway the user name I want to take the first 3 characters from postal/zip code and the first three numbers from phone number and make the password. Here is what I am thinking of course it doesn't work. BIG SURPRISE!!!
strUserId = Trim(RS("FName"),1) & RS("LName")
strPassword = Trim(RS("PCode"),3) & Trim(RS("Phone"),3)
View Replies
View Related
For most ASP apps I write, I send out to another server farm. When the tech takes my code and posts it, he usually looks it over to be sure there are no potential security issues. He said to me one day over the phone while uploading the code, "you should use indexing for your record reads..." I just said, "sure, okay." But I have no idea what the heck he meant. Can someone tell me what he meant?~`^%
View Replies
View Related
I have a script to search my site which is written in asp and works with the indexing server in IIS5. The problem I have is that I want to able to specify what directories it needs to search and only search within the region the user is in. There are 2 catalogs in the indexing server and I will be creating a catalog for each region.
View Replies
View Related
i need to grab all the urls which are linked to specific webpage.its like indexing.
View Replies
View Related
I am converting bites to Megabytes in an operation. How would I trim the result to only go to 2 decimal places?ex:
Response.Write(file.FileName & " (" & (file.Size/1048576) & "Mb)<BR>")
View Replies
View Related
i'm using the indexing service and CreateRecordSet("nonsequential") in asp and i cant retrieve the record although the keywords is matched.
View Replies
View Related
I'm trying to set up a pdf search using windows indexing service, but i'm getting the most random results in the world. it's seatching throught a directory of just pdfs, and if i search for pdf, they all come up, but is i search for 103 then 103.pdf wont come up but things like 034.pdf and 29.pdf will - any ideas?! i'm using the windows IISSamples
View Replies
View Related
This should not be this tough but I may be thinking too hard about it.
Here's what I have:
thenames="charles,sam,chris,"
How do I do remove the last comma? I tried using trim and replace
together but couldn't get it.
View Replies
View Related
I'm creating a website that will have a page that lists current news
items. The news items will be stored in a SQL Server database and will
have basically two fields, the date and the news blurb . . . On the
main page of the site, I want to have a box that shows "Current News"
and only pulls the first 7 or so words from the news blurb followed by
a ... [more] where [more] is a link to the current news page.
For example, the database entry may be something like this: Code:
View Replies
View Related
I have created 3 tables (Products, Catagories, Catagory Index) I use the catagory index to assign products to multiple catagories.I am stuck with the SQL to join the catagory index with the products so I can pull the products out - I have created the relationships,tables are below:
Products
Prodcode (PK)
other fields
Catagories
CatID (PK)
Catname
Catagory Index
ID
ProdID
CatID
as stated I am using the catid to identify the products and would appreciate assistance with the SQL to access the rest of the product data.the CatID is passed to the page via a url parimeter.
View Replies
View Related
I have a textarea, that when you insert your cursor into it anywhere except for in the very first line, the cursor falls into the second line. When the form is submitted there is a carriage return at the beginning of the text that I'm having trouble getting rid of.
I tried to Trim() the string both before inserting it into the database and when writing it to the page, but apparently that doesn't strip off carriage returns (even though I've read it does.)
View Replies
View Related
i need to use the trim function trim("str","?"). How do i remove the "return sign" from a string?
View Replies
View Related
how to use ltrim, rtrim to trim the beginning and end of text entries for extra spaces. I was wondering if there is a way to trim extra spaces from WITHIN a text entry.
Example:
change
John and Linda
to
John and Linda
View Replies
View Related
I've recently transferred our web sites from a Windows2000 server to a Windows2003 server. The transfer went almost flawless until I noticed that our search function isn't working anymore. I'm using an ASP script to use the Indexing Services and have set up my catalogs and directories but I'm getting a 'type mismatch' on one of my Server.URLEncode commands.
Do I need to obtain a new script to utilize the Indexing Services of Windows2003? If so, does anyone know where I can find this or would it be better to use a service such as Google or another SE?
View Replies
View Related
I'm trying to build a site that based on a user entry searches through the
contents of files on a disk and displays a list of files which contents
match user criteria (basicaly a word).
How to extract a part of the document (paragraph ecc), where the searched
word is found. OLE DB provider for Indexing service provides atribute
Characterization, which returns the subject of the document, but not the
correct paragraph. Is there any other usefull atribute?
View Replies
View Related
I need to select records from table where right part of Field1 = strTest
the table looks like:
Field 1 Field2 Field3
5159-10 2 3
5159-20 6 9
LS5598-20 8 9
strTest=5159 or LS5598 doesn't matter
should be something like "select Field1 from tabTest where " & Right(Field1, 3) & " like " & strTest & "
Obviously I'm wrong somewhere, could anyone tell me where?
View Replies
View Related
does anyone know if it's possible to crop whitespace regions from around the edges of an image using Imagemagick?
I have a whole bunch of signature images (as in, people's handwritten signatures) and I'd like to crop them so that there's no whitespace margin around them. I can do the cropping fine, it's just detecting the color regions.
View Replies
View Related
I need to do is remove ALL characters after and inc the characters "." found in a variable. i have a variable which holds device with DNS name such as E096064-FWSM2.netdevice.companyname.com
i want the variable to just hold the name E096064-FWSM2 the extension after the first "." can very greatly so i can not specify all possible options as i just do not know what they are going to be.
View Replies
View Related
I'm fussing around with a first attempt at using IIS6's indexing service
for a web site search page. The trouble is, my site, while not using a
database, is largely dynamic, with much of the content filled in with
variables and includes, and index server only seems to index the actual
code of each file, and not the contents as seen by web viewers. So if I
have my default.asp file dynamically cobbled together by several other
files, default.asp doesn't register in the index with its served content
and so doesn't appear in the search results.
Just wondering if indexing service can be used to search pages within a
site as they appear to the browsing public (like search engines do), or
if it just wasn't made to do that and I should try something else?
View Replies
View Related
I make a csv file with values from data base fields . If my value contains a carriage return caracter at the end, a new line is created in my csv file. I tried to replace chr(13) caracter by an empty caracter but it doesn't work, my code is:
Replace(Trim(element.value), chr(13),"")
Do you have any idea to resolve my problem?
View Replies
View Related
I cannot figure out why this won't work, but I cannot get the trim() function to work for me. I tried this test code just to see if I could get anything:Code:
<%
String = "This is a string"
response.write String & "<br>"
Trimmed = Trim(String)
response.write Trimmed
And the results are both the same.This is a string.
Can anyone think of any good reason the Trim statement wouldn't be working I cannot think of any other common ASP function that isn't working for me.
View Replies
View Related
its ok to use just
Trim(Request.Form("txtFromName"))
or to use both
rTrim(ltrim(Request.Form("txtFromName")))
View Replies
View Related
If I have a asp file with a small chunk of asp in the top, and the remaining code is just hardcoded html:
<%Some asp code%>
<html>
<head>
<ETC>
WILL search engines still index and 'pick up' the actual text, titles, etc, of the html?
View Replies
View Related
I have an Access database driven website using ASP in IIS 6. On my website, I have a discussion forum, I wonder how can I add a full text indexing feature into my forum. So for example, when someone wants to search the word "fish" in the forum. All threads that contains the word "fish" should popup as the search result.
View Replies
View Related
I'm trying to set up a full text search engine on my corp website. Due to the number of documents to be indexed and the strain IS can put on as server, it was determined that the Indexing Services should be run on a dedicated box, instead of on the webserver.
This all makes good sense until I actually try to connect to the catalog in my code. From what I can tell, IIS looks to the local machine for it's catalog sources. Does anyone know if it is even possible to remotely connect to an index catalog?
I've tried adding the server namespace to the catalog name in many different syntaxes, and so far nothing has worked. Code:
View Replies
View Related
I have a problem with a small asp-solution that searches for documents with
indexing service. For some files in the search result I get "bad text"
returned, such as Code:
View Replies
View Related
I ALWAYS forget this cause we ALWAYS turn our db connections into COM components. That said... I need one for this project . Here's my base Access one:
DBPath ="C:datastoresmediacd.mdb"
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & DBPath
I just don't quite remember the SQL Server variation.
View Replies
View Related
I have a problem with a small asp-solution that searches for PDF-documents with
indexing service.
For some files in the search result I get gibberish returned, such as ....
View Replies
View Related