E
Eric
Hi,
In the load event of my page I have the following code:
If verzoek(1) = "4" And verzoek(2) = "5" Then
Server.Transfer("~\PresentFile.ASPX?file=" + verzoek(4) + ".OV2",
False)
Response.ClearContent()
Response.ContentType = "application/x-unknown" ' arbitrary
Response.AddHeader("Content-Disposition", "attachment; filename=" +
verzoek(4) + ".OV2")
Dim adoStream As Object = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(Server.MapPath(".\temp\" + verzoek(4) +
".OV2"))
Response.BinaryWrite(adoStream.Read())
adoStream.Close()
adoStream = Nothing
Response.RedirectLocation = "~\sitenum.aspx"
Response.Flush()
Threading.Thread.Sleep(2000)
End If
verzoek(1) and verzoek(2) are 2 arguments in the url of the page:
"~\siteinfo.aspx?Do=4&answer=5"
With the above code I get a nice popup so the user can decide what to do
with the file (save/open).
In de menu I have several linkbuttons, each has a
response.redirect("~\somepage.aspx").
Now my problem is that after the popup, I can click on any linkbutton, I
keep getting the popup again.
So I need to change the url, i.e. remove the two arguments so the main page
is loaded, because a respone.redirect after the response.flush is not
possible.
How can I do this?
rg,
Eric
In the load event of my page I have the following code:
If verzoek(1) = "4" And verzoek(2) = "5" Then
Server.Transfer("~\PresentFile.ASPX?file=" + verzoek(4) + ".OV2",
False)
Response.ClearContent()
Response.ContentType = "application/x-unknown" ' arbitrary
Response.AddHeader("Content-Disposition", "attachment; filename=" +
verzoek(4) + ".OV2")
Dim adoStream As Object = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(Server.MapPath(".\temp\" + verzoek(4) +
".OV2"))
Response.BinaryWrite(adoStream.Read())
adoStream.Close()
adoStream = Nothing
Response.RedirectLocation = "~\sitenum.aspx"
Response.Flush()
Threading.Thread.Sleep(2000)
End If
verzoek(1) and verzoek(2) are 2 arguments in the url of the page:
"~\siteinfo.aspx?Do=4&answer=5"
With the above code I get a nice popup so the user can decide what to do
with the file (save/open).
In de menu I have several linkbuttons, each has a
response.redirect("~\somepage.aspx").
Now my problem is that after the popup, I can click on any linkbutton, I
keep getting the popup again.
So I need to change the url, i.e. remove the two arguments so the main page
is loaded, because a respone.redirect after the response.flush is not
possible.
How can I do this?
rg,
Eric