Hi All:
I have a frameset (right and left). In the left frame I have a listbox that
contains items. When the user clicks on any one of these items (each item
points to either a word document or an image) - I'd like to show this (image
or word document) in the frame on the right. Would anyone have any ideas on
how I can do this? The code I currently have is:
I am trying to figure out what response.redire ctlocation does - without much
luck.
Dim filename As String = "C:\temp\p. jpg"
Response.Conten tType = "text/HTML"
Response.AddHea der("content-disposition", "attachment ; filename=" & fn)
Dim adoStream As ADODB.Stream = Server.CreateOb ject("ADODB.Str eam")
adoStream.Open( )
adoStream.Type = 1
adoStream.LoadF romFile(fn)
Response.Binary Write(adoStream .Read())
adoStream.Close () : adoStream = Nothing
Response.End()
TIA
Vinay
vi******@nospam .yahoo.com.nospam