R
Rob
ok, so im ready to absolutely throw my self right into the monitor,
can anyone explain why certain events fire before others in asp.net?
in my case, after some processing a final download aspx page calls a
download function which writes a file to the browser.. yet after that
is done I want the page to redirect to another page, but no matter
what I try it wont redirect, I know there is something with the way
..net works, I just cant figure it out.
here is simplified version of code
process....
call downloadfile
Sub downloadfile (fullfile as string)
Dim fstream As FileStream = File.Open(fullfile,
FileMode.Open)
Dim fsize As Long = fstream.Length
Dim Buffer(CInt(fsize)) As Byte
fstream.Read(Buffer, 0, CInt(fsize))
fstream.Close()
Response.AddHeader("content-disposition", "attachment;
filename=" + filename)
Response.BinaryWrite(Buffer)
Response.Redirect("main.aspx")<--- this does not fire at
all?
end sub
after the open/save window comes up , the redirect never fires..
thoughts appreciated.
can anyone explain why certain events fire before others in asp.net?
in my case, after some processing a final download aspx page calls a
download function which writes a file to the browser.. yet after that
is done I want the page to redirect to another page, but no matter
what I try it wont redirect, I know there is something with the way
..net works, I just cant figure it out.
here is simplified version of code
process....
call downloadfile
Sub downloadfile (fullfile as string)
Dim fstream As FileStream = File.Open(fullfile,
FileMode.Open)
Dim fsize As Long = fstream.Length
Dim Buffer(CInt(fsize)) As Byte
fstream.Read(Buffer, 0, CInt(fsize))
fstream.Close()
Response.AddHeader("content-disposition", "attachment;
filename=" + filename)
Response.BinaryWrite(Buffer)
Response.Redirect("main.aspx")<--- this does not fire at
all?
end sub
after the open/save window comes up , the redirect never fires..
thoughts appreciated.