ASP.Net and Image Caching - TechRepublic
General discussion
February 13, 2003 at 03:22 PM
twinkieami

ASP.Net and Image Caching

by twinkieami . Updated 23 years, 4 months ago

I am having problems with an image just hanging around. It is created here:

Sub DrawBarGraph(ByVal stringTitle As String, ByVal axisX As ArrayList, ByVal axisY As ArrayList)

‘ The Bar Graph Stuff

objBitmap.Save(“c:\Inetpub\wwwroot\Assignment02\Mortgage\images\graph.gif”, ImageFormat.Gif)

objGraphics.Dispose()
objBitmap.Dispose()

End Sub

I am trying to clear it here:
Sub btnClear_Click(ByVal Sender As Object, ByVal evnt As EventArgs)

textPrinciple.Text=””
textInterestRate.Text=””
textNumberOfYears.Text=””

‘ The label clearing here

Dim gifFSO
gifFSO = Server.CreateObject (“Scripting.FileSystemObject”)

gifFSO.DeleteFile(“c:\Inetpub\wwwroot\Assignment02\Mortgage\images\graph.gif”, False)

End Sub

It is for an assignment. It is written in VB Script and there cannot be any code behind. How do I remove the gif from a user’s screne. The file is being successfully deleted.

Thanks for your help.

This discussion is locked

All Comments