M
mvargasp
Hi all,
I have a web form which contains a frame, (a form
containing a menu on the left and a web form containing a
datagrid on the right). Also there is a button (right
side) which transforms the datagrid content in a CSV file
and forces the user to download the file. The following is
the code used to force a download:
'strCadena contains the datagrid info separated by commas,
as a CSV file
Response.ContentType = "application/octet-stream"
Response.AddHeader("content-
disposition", "attachment;filename=Reporte_InfoRed.csv")
Response.Write(strCadena)
Response.End()
After the user saves the file, the links on the menu on
the left side don't work and the buttons on the right side
promt an error on the client side. I think it's because of
the change of the Content-Type. When I click on a menu
link and then view the history of the browser, the "name"
for the last page visited is "No page to display".
Does anybody know if there is any other way to force a
download without changing the Content_Type?
Thanks in advance.
God Bless.
I have a web form which contains a frame, (a form
containing a menu on the left and a web form containing a
datagrid on the right). Also there is a button (right
side) which transforms the datagrid content in a CSV file
and forces the user to download the file. The following is
the code used to force a download:
'strCadena contains the datagrid info separated by commas,
as a CSV file
Response.ContentType = "application/octet-stream"
Response.AddHeader("content-
disposition", "attachment;filename=Reporte_InfoRed.csv")
Response.Write(strCadena)
Response.End()
After the user saves the file, the links on the menu on
the left side don't work and the buttons on the right side
promt an error on the client side. I think it's because of
the change of the Content-Type. When I click on a menu
link and then view the history of the browser, the "name"
for the last page visited is "No page to display".
Does anybody know if there is any other way to force a
download without changing the Content_Type?
Thanks in advance.
God Bless.