Click here to Skip to main content
16,016,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I hope you can understand me.

I want to open a popup wich contains a proces to export a crystal document to pdf, I really can do it, but I want can continue navigation
until process to export is working.

ej.; in page1.aspx I open a popup ppExport.aspx (ppExport.aspx work aprox. 10 minutes) when the popup is open, I want to be able to change from page1.aspx to page2.aspx, or int another case I want to be able to do a click on an asp button and do another process.

Newly I hope you can understand me.

PD: I am Mexican and my English is not very good.

thnks.
Posted

If you have a file that will take ten minutes to download you should give the user a choice before automatically downloading it. You can provide a link and allow them to download using whatever download manager is present in the browser they are using. The user can continue to navigate around your site, or anywhere else for that matter, while the download is processing.
 
Share this answer
 
Comments
Rodrigo Esparza 13-Dec-10 16:53pm    
thnks for replay, but it doesn't.

the process wich take 10 minutes is the process from export a CrystalReport, into the page_load i have code to get info from database, setting in datatables of my CrystalReport (all this take aprox. 2 or 3 minutes) and then export it to PDF with ExportToHttpResponse, when the code is in ExportToHttpResponse take 7 minutes aprox.
Then, when this process is working I can't navigate from my application.

I think MultiThread can be the solution, but I don't know do it (but I'm trying to do it).

thnks.
[no name] 13-Dec-10 18:00pm    
Multi-threading is not going to help you in an ASP.NET environment. The page will not be rendered to the client until the threads have completed thus locking the browser for tem minutes. The user will close the browser long before that and never vist your site again.

What you need to do change your design, two - three minutes is far too long get data from a database, seven minutes to export the response is atrocious. If a report can't be retrieved and displayed from the web in less than one minute it is worthless.

Typically processes that take such a long time are pre-run and the report is served from this cache.
Hi.. first thnks for response..
then... I know the point of a needing a change of design, but, the web application is now running at production development and a change is not posible.
Now, I just want to know, if You think I'll be able to do things I want to do...
I want to open a popup wich contains the long process and continue working into the application...
This is an example of my application export (writing in Spanish):
Para esto tengo la siguiente funcionalidad:
PaginaA.aspx – Aquí mediante un click a un botón se obtienen variables y se
cargan en sesión y al terminar con ScriptManager.RegisterStartupScript ejecuto
una función de javascript que me abre una ventana auxiliar como “popup”
VentanaAuxiliarPopup.aspx – Aquí se encuentra una imagen y un mensaje de “Cargando..”
y tiene un iFrame la cual ejecuta una tercer página que es en la que se realiza el proceso.
Esta Ventana auxiliar, utiliza funcionalidad javascript para saber cuando se
cargó completamente el iframe para poder cerrarse automáticamente.
contenidoIFrame.aspx – Aquí se ejecuta el proceso para generar el archivo,
El problema es que aunque sea una página separada de la ventana principal,
no se puede continuar trabajando de manera normal y es lo que quiero lograr
o al menos saber si se puede lograr.
Thnks in advance.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900