If (fs.FileExists("c:winntcursors3dgarro.cur"))=true Then Response.Write("File c:winntcursors3dgarro.cur exists.") Else Response.Write("File c:winntcursors3dgarro.cur does not exist.") End If
set fs=nothing
Except everytime I run it, I get an error saying the property or method is not supported?
Finally I resolved upload issue. Now I want to add the validation before the upload. So I can make sure it is a JPG file, not any malicious files such as asp. exe. bat, etc..
Set Upload = Server.CreateObject("Persits.Upload") If Upload.File.ContentType="asp" Then Response.write "Invalid file" End if
Upload.Save "k:Inetpubwwwrootpic"
It's not working
Error: Object doesn't support this property or method: 'File'
I wanted to add this method to my .asp page in order to dynamically choose a page based upon some selection criteria. It's in my .asp book and in the online reference. Yet when I use this object, the following error returns in the browser:
Error Type: Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method: 'Response.Redirect' /testwebs/choose.asp, line 22
What is missing from my IIS libraries in order to use have this method supported?
Can't get this to work. I'm creating a workaround for the absence of aspJPEG on my server. I'm using aspUpload but my server only uses aspThumb. After aspThumb optimizes the original pic the file size changes and I need to reflect that change. When using aspUpload I can reference it's built in File object references but they only refer to the "original" file. There's an easy solution when using aspJPEG but not with aspThumb so I'm trying to get the "new" picture size using a scripting object with this script but I'm getting this error.
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'objPictureSize.Size'
/admin/media_upload_picture_process.asp, line 107 ....
I have almost completed tweaking vbscript to run on mysql rather than the Access database it was designed for. Trial and error, luck and a bit of detective work have got me this far, however I am getting the following error when tryinf to update existing records in the database.
Microsoft VBScript runtime error '800a01b6' Object doesn't support this property or method: 'RS.Find' /faq/admin/edit2.asp, line 7
The .Find text is black whereas all other "methods"(?) like the .Open are pink. Is it that the .Find method works with access and not mysql and if so waht is the equivalent or am I barking up the wrong tree?
I can't seem to go through this recordset,method isn't supported on any of the commented out lines, anyone know what my problem is?
Code:
dim objConn set objConn = server.CreateObject("ADODB.CONNECTION") objConn.Open "Received", "t", "b" Dim RS Set RS = Server.CreateObject("ADODB.Recordset")
dim strSQL strSQL = "select TOP 15 (requestNumber) as rn from request_received" RS = objConn.Execute(strSQL)
I've just been caught out by a host that doesn't support #includes in my ASPs. What's the best strategy for replacing these calls to files that include everything from subs and functions, global constants, other #includes, script directives, etc.??
i am trying to count the records in an access database, and i cant seem to figure out the syntax to count the records and output a response.write with the number.
I have a virtual path setup in order to give my web server access to a file on my app server. I am using the file system object to check for the existance of the file and if it exists, it has to validate the file date.
The problem is I can't seem to find the file. I can successfully check for the existance of a file on the web server, but once I enter the virtual path it can't find anything. All three of these calls return false...
But that display the results side by side in the table and it keeps expanding.. I want to show 3 items across then loop back down to show the next 3...
I have radio buttons that I want to disable given the choise had been made (stored in Access DB)It searches only the first value. HEre is the script:
I had already chosen "Bill: Dec-12", the radio button is disabled when I access the page. But when I fill the form and choose "Jack: Dec-13", the next time I go to the registration form - the radio button for "Jack: Dec-13" is not disabled Code:
When I create a ADODB.RecordSet object and then try to loop through the results, everything works fine, unless when I am done looping through the results I need to call the movefirst on the recordset object. If I happen to have used an ORDER BY in my SQL, it bombs out. Code:
I'm simply trying to get a number of records returned in a recordset, and just get a -1. I have looke din a few books and other references, can't seem to find any answers. Anyone have any idea why I can't get a real number? For the record, the recordset is not empty. In fact, it has many records which I can see plainly on the screen. But when I do response.write rs.recordcount, it just shows -1
i tried using a few method from the forum and fail. So anyone can help me out with this, i wanted to count the total number of record in the on of the table Namecard, so tried this code but fail, anyone can help me out? Code:
Our application currently runs on aWindows 2000 Advance server with Oracle 8i and Microsoft IIS 6.0. We are changing servers and will now be running a Windows 2003 server with Oracle 8i and Microsoft IIS 6.0.
The .RecordCount property does not work on the server. It returns a -1. We have not changed any code.
Any idea why this would happen? Are there certain parameters that have to be set to get the .RecordCount to work?
I have an ASP page calling a VB COM calling an SQL Server stored procedure. What I would like is to return a recordset to ASP (works fine) and obtain the RecordCount (doesn't work). The problem seems to be the difference between adOpenForwardOnly and adOpenStatic of the recordset (adOpenForwardOnly is default and doesn't support RecordCount). Unfortunately, I'm unaware of how to specify adOpenStatic for the recordset. I've seen the "RS.Open SQL, Connection, adOpenStatic, adLockReadOnly" method, but my recordset is populated by a stored procedure "Set objRS = objCmd.Execute" ... any ideas how I can obtain the RecordCount (short of having the stored procedure return a count)? Also does it matter where I specify the adOpenStatic (ie, in VB COM or ASP)?
I've like to check whether the recordcount equals 0, 1 or greater than 1. I'm still getting to grips with ASP, but hope this isn't too hard. Coming from CF background - have sussed out conditional stuff in ASP, but need to do recordcounts for validation.
to count total records in rsnews table, how do i change this to count not all the records, but count the records that has a certain field with a value in it? ie:
I'm using multiple recordsets on a page, and they are all returning correct results and enough of them. My problem is when I try to access the recordcount property rs.recordcount, they all return a result of -1. This would usually mean that no records are returned. So why is showing my recordsets that are displaying records with recordcounts of -1. I can't seem to figure out.
even though the db has pulled at least 10 records... i cant figure it out... it has broken alot of my code.. and i've been forced to find different means of making the same code work in asp that i could write quickly in php. i'm trying to learn asp now, and i'm just having problems with this..