ASP File Changes - Drops ASP Code

I have written a classic ASP calendar that has been on my organization's website for a couple of years now, and it has worked fine.

I do all of my writing to files on my hard drive, then when the files are working properly, I upload the files to the server. Therefore, the files on my hard drive should be identical to the ones on the server. This has worked fine in the past - I have had two fully functional calendars, one on my hard drive, the other online. Until now, they both looked and worked identically.

Now, I'm trying to modify the main file, "calendar.asp". It no longer works, and the online copy still works flawlessly. When I looked at the local file (calendar.asp), all of the ASP code had been stripped from the file. Of course, the online copy is still intact and working.

The only editor I have used on these files is Notepad (actually, Notepad ++, an enhanced Notepad). I would understand if I had tried to edit the files with Frontpage (I'm using Frontpage to upload files to the server, but that's all I use it for), but these local files haven't been touched by Frontpage.

What Gives? How can a file selectively remove it's own code and disable itself??!!!

I try exporting the files from the server, and though the server files still have their ASP code, the browser can't find one of the include files, which is plainly in the same folder as the calendar.asp file. The file "adovbs.inc" is no longer reachable from my hard drive, even if I export ALL of the files in the "calendar" folder to my hard drive.

What can be hoseing up my local files, and how can I prevent it? Although I have downloaded ALL of the files from the online copy to my hard drive, why do the files behave differently than they do online? What kind of trickery is this?

View Replies


ADVERTISEMENT

VarUser Drops First Character

I have come across an interesting problem. Let me first state that I am not a fluent ASP programmer. I am a network engineering trying to port an existing app. The app in question is currently running on IIS 5.0 (2Kserver) in a NT 4.0 domain. I am moving it to an IIS 6.0 server in a 2003 Active Directory domain.

My app calls this variable <%= varUser %> and brings the users login name to the web page as well as using it to pull data specfic to that user in other parts of the web page. When logging in as a NT 4.0 domain user all is fine. When logging as an Active Directory user is drops the first character of the user name example "ser" instead of "user". Any ideas?

View Replies View Related

ASP Statement Drops Leading Zero In Int Field

I have a form that pulls a zip code and insterts it into a access database via ADO/ASP. When the data is inserted with a 0 in the front (ex: 03490) the leading zero is dropped.

Anyone know a quick solution for this problem, without having to add validation to the database (zerofill, etc) ie; some ASP function...

View Replies View Related

Captcha Form Field Drops

I have an asp submission form using Web Wiz Captcha. When the form submits, it seems to occasionally drop the last value from the captcha field.

The field size is 12, as is the maxlength. The values placed into the field don't get to more than 6 or 7 letters.

View Replies View Related

Load ASP Code From Another File

I am writing a small CMS type system for our intranet at work and I am trying to have a main "index.asp" that does all the work in a template folder and every time I add a new section instead of making a new copy of this file I would like to have some generic "index.asp" file that is nearly empty that just calls the "template/index.asp" file and let's it do the work.

The way each page in the intranet works is by using the same asp file but by having a few configuration files in their directory that point it to different menus, titles etc.

Is there a way to load an asp file from another one? I tried creating an index.asp containing just <!-- #INCLUDE FILE="templates/index.asp"--> but it doesn't seem to do it.

View Replies View Related

File Upload Code

I have a page for uploading files. I got the codes courtesy from Shadow Wizard's shadowuploader file which is posted online. as the asp upload is something new and i am not familiar with, anyway i tested the page to upload some files but there was an error displayed Error Type:

Microsoft VBScript runtime (0x800A004C)
Path not found
/shop/ShadowUploader.asp, line 283

it refers to this highlighted code in red. what does this error suggest. can anyone explain.

View Replies View Related

Code To Use File In A Directory

I'm coding a page where you can download a lot of different files( 100-1000) but I don't want to code each file(linking and all) it would take weeks to do that. I tried with a database and asp code rding the databse but it not saving a lot of time since I got to complete the databse.

I wanna know if we can code with asp something to automaticly read each file and list them in html so I dont have to code 1000 x the samee thing.

View Replies View Related

Include A File Code

I want to put this code in all my asp programs. code'objrs.cursorlocation=adUseclient' in all my asp programs. i hve created around 30 asp programs but forgot to place this one.

So is there any way to write only this code(objrs.cursorlocation=adUseclient) in any program, and include this file in all this 30 programs using #include file.

In all 30 programs , i have written code
set objrs=server.CreateObject("adodb.recordset")
objrs.open strsql,objconn,3,3

View Replies View Related

Code Behind File Not Being Refreshed

we're running IIS 5 and trying to do a simple update to a code behind file (Login.aspx.vb) we copy the file over to the server, but we're not seeing the updates. the server is still reporting errors on line numbers in the file that no longer exist. we've even stopped / restarted the service, with no luck.

View Replies View Related

Simple ASP File Upload Code

Can anyone tell me where I can find some 'simple ASP File Upload code'? I've googled 'File Upload' but they all seem to be very involved with a lot of files. I'm still considered a novice when it comes to ASP.

View Replies View Related

Simpe Code For File Upload

I have search the web last day all day and i did not find how to make a simple upload in APS not classes and third parties and don't know what .dll's that must be copyed on the server just 3-4 lines of code just like in PHP:

<input type="file" name="img">
$dir = "img/";
copy($img,$dir.$img) or die ("Error");

............

View Replies View Related

Code To Convert File Sizes

i have the following code that converts a file size into a readable format (10MB for example) to show to the user Code:

View Replies View Related

Encrypt An Asp File Source Code

we have an Enterprise Application on ASP and MS SQL 2000. Would like to know if I can convert the asp app to an exe or encrypt / encode / hide the source code so that no one accessing the server can touch / modify / copy the same.

View Replies View Related

Picture File Upload Code

I am looking for some code somewhere that is capable of getting information from a file submitted with the Form File tag and then uploading it to a remote server. Does anyoen know of anything?

View Replies View Related

Optimizing A Multidimentional-array-to-file Code

I have a multidimensional array that is actually 1 dimension (but it comes from a recordset.getrows). My goal is to put every single line of the recordset in a textfile.

currently, here is my code:

for i = 0 to UBound(Res,2)
fileContent = fileContent & res(0,i))
Next
createTxtFile(path,fileContent)

The problem is, I have 5000 lines and it takes about 10 minutes. I was thinking of doing a Array.Join but I don't think that works with multidimentional array. Also thinking of converting my useless multidimentional array into a sing dimensional array but how?

View Replies View Related

ASP Code - Anti Spam Verification Code

I'm looking for sample code that will require a use to enter a code from a scued image format.

I'm sure you've seen them before where the image is barely readable by a human and the user has to enter the code correctly to submit the form.

I'm looking for ASP code and NOT ASP.NET code as I am supporting a legacy site.

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 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

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

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

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

Converting Text File To Sound File In ASP

Does anyone know of a method of converting text files to sound files (.wav, mp3 etc) which can be accessed from ASP?

I have an ASP-based website that enables users to design choreography for equestrian dressage. The resulting design is held as a series of coded movements in a database and it can then be reproduced as text or as a series of diagrams. I would like to offer the option of an audio version.

View Replies View Related

Set File/User Permission With ASP/VBScript To A File

i would like to add a user and set file permission to a file with ASP.
(No component). is that possible ? do you have a link ? an example ?

View Replies View Related

ASP File Upload - Limit File Types?

I would like to use this code on my website to allow simple file uploads from clients. I would like to restrict the file types they can upload. Code:

View Replies View Related







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