File Properties

I want to ask are there any other ways to get the file properties such as file name, path, date created... other than using 1. FileSystemObject or 2. file upload with encType="multipart/form-data".

For FileSystemObject, I can get it work in my local computer but not on the server(coz the server are not mapped to the network drive).

And for case 2, although I can use HTTP_CONTENT_TYPE to retrieve form values but I think I cannot use request.form("aa").count or request.form("aa").item(i) to get select option values.

View Replies


ADVERTISEMENT

File Properties :: Find Out The Width And Height Of An Image File

is there a way, using asp, to find out the width and height of an image file?

View Replies View Related

Upload File To Server And Get File Properties

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

View Replies View Related

Image Properties: How To Get,

I am wondering if it is possible to get more information on files then just
name, date, size etc..

Specific, I want to know what dimension (x and y pixels) an images has.

Can this be done by ASP. Do I need a component? Are there free components
out there?

View Replies View Related

Retrieving Url Properties

Is there a way in asp to retrieve part of the URL and use it

say the url was

http://localhost/site/craig

is there anyway of retrieving the word craig so to use it in the page

This is because i could have other addresses that are for example

http://localhost/site/Jon

where i need to retrieve the word jon

View Replies View Related

Retrieving Properties

How to retrieve "Last modified" & "FileName" from all files in a specific folder (called MyDocs) and display on the ASP page?

eg. (in MyDocs folder)
- MikesWork.doc
- MyResume.xls
- HouseExpenses.xls

Situation
Let's assume that i just modified MyResume.xls file and save it today(10/30/2003) on my computer, then i upload it into the internet. On my asp page, i want to show all files Filename (Last Modified) in MyDocs folder.
eg.
Your Documents
1. MikesWork.doc (last modified 10/24/2003)
2. MyResume.xls (last modified 10/30/2003)
3. HouseExpenses.xls (last modified 9/15/2003)

I know it has to do with fso or something close to it... but totally have no idea (zero) of its logic or how it works. Please help me by giving me with full example.

View Replies View Related

Field Properties

Can anyone help with the following:
I wrote an ASP script with allows me to select an MS Access database
from a folder, and it shows the tables in this database. If I click a
table, the fields are displayed. And then I have a button to create a
HTML form to suit this table.
My problem is, fields that are essential.I would like to mark
appropriate form fields as 'essential' . Is there any way I can get the
attributes of a field, so I know if it will accept null values?

View Replies View Related

Object Properties

Is there any way to list all the properties that an object has? For example if I do a CDO.Message object and call it NewMail. Is there anyway I can find the properties of that the object supports. IE NewMail.From, NewMail.To etc

View Replies View Related

Page Properties

I ve probably a very simple question but i really can't find an answer. I d like to know in an ASP page what is the URL of the page, the full URL invoked by the client to get the page. I looked in the server object but i did not find.

View Replies View Related

Excel Properties

I am in need of knowledge about how to control the properties. By properties, I mean font, hyperlink, and color information. I'd like the spreadsheet to have the same data as the HTML page it's getting the data from, but in a different format.

I have been searching in several places, including the Excel Help files, but cannot find any info on how to do this. I'm not asking anyone to tell me how to do this; just looking for where to find out how to do this.

View Replies View Related

Transaction DDL Properties

According to Access my ADO connection has a value of 16 for the Transaction DDL property. Does anyone know what this equates to? I've found this page -

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/adosql/adoprg04_83jt.asp

But it doesn't tell me which constant this relates too, and I haven't been able to find an answer at Google either.

View Replies View Related

Validate: Formobj Has No Properties

i am getting this error message when i validate my page and it is

Error: formobj has no properties
Source File: /sellgiftnum.asp?
Line: 55

and line 55 is this one
var obj = formobj.elements[fieldRequired[i]];

Can someone tell me whats wrong with it .....

View Replies View Related

Gathering Image Properties

I've uploaded an image to the server and was wondering if there is any possible way to get the dimensions of the image through ASP.

dim iWidth, iHeight, iType
sub ImgDimension(img)
dim myImg, fs
Set fs= CreateObject("Scripting.FileSystemObject")
if not fs.fileExists(img) then exit sub
set myImg = loadpicture(img)
iWidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)


but I keep getting problems with the loadpicture.

View Replies View Related

Drawing Page Properties

Is it possible to grab the title of the page and echo it somewhere in your asp document? Does ASP have a premade variable to grab this?

View Replies View Related

Retrieving Field Properties

How can I retrieve the default value and allowzerolength property of all the fields in my table? I'm using ADO.

View Replies View Related

Excel Cell Properties

Is it possible to set a cell property in Excel from an ASP page. We have numerical data that is taken from a database and then displayed in Excel. I would like ideally all the data to be set at 2 decimal places, is there anyway of setting this from the ASP page?

View Replies View Related

Accesing Office Document Properties With ASP

Does anyone know of a way to access the document properties of an office
document using ASP? I need to be able to read things like the Title,
Author, and Comments fields and pull that information into a web page.

View Replies View Related

How To Assign Object Properties From XML Content?

Before there was XML my world was in order, I would once a year write some small ASP script, it would perhaps take me all weekend, but it was doable, now the devil has entered my life, in form of an XML file ... Code:

View Replies View Related

Setting Session Cookie's Properties

I want to set the asp session id path property. How can I do that?

I mean, asp session id is stored in a cookie and like any other cookie it should have properties (or attributes), how can I control it?

View Replies View Related

Header Properties In The Crystal Reports Viewer.

I want to dislay a query from a database in asp, with the crystal reports viewer.

i can see the report in the CR viewer, but the headings are overlapping each other.

what kind of properties do you have for the report header? Or does somebody know the
sollution? Code:

View Replies View Related

Error - ODBC Driver Does Not Support The Requested Properties.

I am taking my first crack at writing some ASP and have no clue as to what this error is pertaining to. I will be in your perverbial debt for ever!

----------------------------------------------------------------------------

The error I am getting is:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

ODBC driver does not support the requested properties.

/agentlookup.asp, line 8

-----------------------------------------------------------------------------

And here is the code it is referencing: Code:

View Replies View Related

Converting An Image File To Hexa, Read Text File

i'm converting an image file to hexa..then the hexa is saved to a text file..

can any one help me how to read the content text of a text file?...

im doing it this way because i don't want to save hexa in my database, because it makes the database slower to open up.

View Replies View Related

File System Object - Check If File Is Being Read

I have code that loops through a directory reading files..

now the problem is that files are constantly being uploaded and I only want the file system object to read those that are finished being uploaded.

How can I check the properties of the file to see if it's in middle of being written before i read the file?

View Replies View Related

How To Open A File Dialog And Get The Path Of The Selected File In ASP?

i am having a problem in how to create a Open File dialog to enable user to select a image file that will be stored into database. i just want the file path to be stored in database, not the image.

View Replies View Related

How To Find Excel File Width And File Version

It works if the file in on the server side, how to use the component (DSOleFile) with the file on the client side? Also how can I calculate the width of the file. (Page set up - Landscape or porrait). Code:

View Replies View Related

How To Do Online Streaming Audio File Or Video File?

I need to do online streaming multimedia file on my web portal, just like those online portal that selling MP3. User need to click on the preview link to stream the audio file to listen before they decide to buy the file or not. How do i link my audio file in my web server to allow it to be stream? Totally lost on this function,

View Replies View Related

File System Search On An Asp File Yields Not Results

This question has to do with MS file search but it is happening only with
..asp pages, so I though someone programming with .asp pages has experienced
the same situation.

I'm trying to find .asp pages with a certain table name (i.e.
"renewalInfo" )

When I ran the search I get no results. I know that I have that string in a
couple of pages. My file system search engine is working fine with other
file types, like Word documents, Excel spreadsheets, etc.

I tried typing the string outside the <% %> tags and when I do the search I
get the file results, so it seems like if the search engine in my file
system was not searching inside the <%%> tags. Code:

View Replies View Related

File Upload - Need To Check File Size

I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.

Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.

View Replies View Related

Executing A Asp File Inside A Executed File

I'm trying to run the server.execute command inside a executed file. It doesn't work. Can anybody tell me why? I've searched all around and haven't found a reason. Could it be because it's not supose to work, or is the syntax diferent then in the first file?
It's something like this:

File 1
...
<%Server.Execute("File2.asp")%>
...

File 2
...
<%Server.Execute("file3.asp")%>
...

File 3
<HTML>
<body>
Hello!
</body>
</HTML>

Is this possible?

View Replies View Related

File System Object - Not Deleting File

I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a permissions
denied error on that line of code.

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

View Replies View Related

Vbscript Include File In Jscript File

I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.

When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?

View Replies View Related

Store File Path And File Name Seperately

if i got a file path as a variable say for Example:

c:folder1folder2folder3folder4file.txt (The Path could be any long)

how do i just store the Path of the file name and the file name seperately. like :

File Path=c:folder1folder2folder3folder4
File Name=file.txt

View Replies View Related

Streaming File To User: 'File Could Not Be Opened'

I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code:

View Replies View Related







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