Milestones Professional ASP Example #4 |
![]() |
This example uses Active Server Pages (ASP) to:
|
|||||||||||||||
| ASP CODE | |||||||||||||||
|
<% response.expires = 0 response.expiresabsolute = Now() - 1 response.addHeader "pragma","no-cache" response.addHeader "cache-control","private" Response.CacheControl = "no-cache" %> <html> <table border="0" width="100%"> <head><title>Live Milestones Server
Demo</title><head> <FORM ACTION="<%=QueryForm%>"
METHOD=POST> <% ' Did the user press a RUN button to
execute the form? If so get the form variables. Select Case ucase(MyType)
oMiles.Activate oMiles.Refresh Randomize ImageName = "test"+CStr(Rnd)+".jpg"
pathname1="/information/programmers/asp/images/" pathname2="e:\inetpub\kidasawww\information\programmers\asp\images\" Response.Write DisplayString FullPathImageName = pathname2+ImageName WWWPathImageName = pathname1+ImageName oMiles.SetTitle2 "Your
Title"+title oMiles.Refresh oMiles.SaveBitmap
(FullPathImageName) oMiles.Close "NoSave" Response.Write "<p><img
src="""+WWWPathImageName+"""></p>" end if </blockquote> |
Click here to visit our main programmer's page.
