Type: Posts; User: Bill Wilkinson
Search took 1.16 seconds.
Show the rest of your code. That code you showed will *NOT* create any file. It just creates an object that *THEN* can be used to store FDF to a file.
strRecords = "" & vbNewLine
do while not rs.eof
strRecords = strRecords & _
"<a href=""maint_print.asp?RdID=" & _
rs("RdID") & "&WONum=" & rs("WONum") & """>" & _
You certainly need to specify full path names for the .htm and .pdf files!
Else they will be assumed to be in a C:\windows\xxx directory and you
will *NOT* have permission to write there and maybe...
Nothing to do with ASP. Should have been asked in a PHP forum.
But really he should be getting the username and password
from whomever administers his site.
How do you know the problem is with sessions?
Assuming you are right:
Remember that sessions depend upon cookies working.
If somehow your site has been marked as a SPAM producer
by the major...
And how does ASP code return two values to the AS3 code??
Is it as simple as
Response.Write value1 & "," & value2 & vbNewLine
Response.Write value1 & vbNewLine
There is no need to use the table prefix (WorkOrders.WONum)
when there is only one table in the SELECT.
classicASP: Bad answer. Means he has to alter EVERY FILE that needs this redirection.
Rajesh: Learn to use your web.config file. It can easily do this (and much more) by just creating a set of...
icount = request.form("icount")
For i = 0 to icount
cat = Replace( request.form("category" & i), "'", "''" )
id = request.form("id" & i)
SQL = "UPDATE event SET...
No, my point is that you have been coding here and posting here for a long time, and I was truly surprised to see you posting code that couldn't possibly make sense.
I *STILL* think you are using...
So very much of that code makes NO SENSE at all.
First of all, you create a new record, referenced by the RS variable. And then you *OVERWRITE* that value by the useless line
What in the world is this:
<% IF Session("wolfID")<>="" THEN %> welcome to Page 1 <BR>
There is no such operator as <>= in VBScript. I don't understand how your page even compiles.
You should first realize that this has nothing to do with ASP, per se.
After all, ASP can only generate HTML code, send that HTML to the browser, and then the browser can only work with the HTML. ...
You describe for me, in English, how your system works. I'll translate it to code.
But I'm not entirely clear on what you want the system (in English) to do, as of yet.
I think you need to step way way back and look at what you are really trying to do here.
Let's consider your two "arrays":
strARR2 = "navigation|manual|heated|heated leather seats"
It is not REASONABLY possible.
The only way to do it is to test each candidate "word" (or phrase) against the entire text. And then repeat for each word.
The problem is in your COMMENT:
' initial array of words:
dictwords = Array("navigation","manual","xenon headlamps","abs","heated","heated leather seats")
I hope you know that this code is pure and utter junk and will never do anything useful:
scatsel = "selected=ch(34)selectedch(34)"
That should be either
scatsel = "selected=" & chr(34) &...
Completely and utterly confused me. I have no idea what the PURPOSE of all this is. Can you explain *THAT*?
How dynamic is your set of words? If it is only changed every day or less, I would create a static lookup table that I then refreshed each day, at say midnight.
This is *NOT* a good project for a...
' initial array of words:
No, but doing Request.QueryString("dir") does! Or Request.Form or Request or or....
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
fileCount = -1
Sub getFilesInDir( dir )
If dir Is Nothing Then Exit Sub
You are working way way way too hard. Just let HTML do it automatically.
Show an example of what you want.