File system object and asp

Discussion in 'ASP.NET / ASP.NET Core' started by shawn, May 21, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I've developed an application on my home pc using VWD and it works there. Now I'm uploading the pages and I'm having problems getting the FileSystemObject to work to see if files exist and delete them.
    I'm trying to take some maintenance out of my hands by allowing users to delete image files. (this is possibly bad form in web programming?)

    A couple things with this:
    1. because of browsers cashing files, in my code I have the file name change each time the image is replaced so if I just have them upload the file with the new file name it wont replace the old one because it has a new name.

    2. If this is bad form should I just create a process to put the old file name into a table and then run another process daily or at some other interval and remove the myself with a script?

    Thanks for any help or suggestions,
    Shawn
     
  2. Are you getting any kind error message?Whats the exact problem you are facing on the DASP servers?Can you provide us with a url?

    1>Try using one of the following:
    HTML : <META HTTP-EQUIV='CACHE-CONTROL' CONTENT='NO-CACHE'>
    Also, see: <%@OutputCache Duration='60' VaryByParam='none' %> http://aspnet.4guysfromrolla.com/articles/022802-1.aspx

    2>If the above option doesnt work for you and you deicde you to rename images everytime,you can use the described technique for clearing the old image files.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page