Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit a function 'call' from asp page and then continue to next page

Status
Not open for further replies.

DaveSefton

Programmer
Feb 25, 2010
9
US

Hello

I would like to ‘submit’ a process (function call) from a ASP web page and simultaneously continue on to next page for more processing ... possible ??

Thx
 
Can't at the same time (simultaneously), but you can immediatley after the processing on page 1 to do more processing on page 2

What exactly are you trying to do? Collect form values, call a function then pass those values to a 2nd page????


--------

GOOGLE is a great resource to find answers to questions like "how do i..."


--------
 

Basically, I have a user who will submit a form and then return to their home page to either logoff or continue another job. What happens now when they submit a form is that PDF's are built based on form values, this could take 10 seconds or 2 minutes, which means they have to wait until this PDF function is complete. I would like to have this function run in the background, if possible.

Thx, Dave
 
What happens to the PDF? Is it emailed to the user or is it displayed in the browser to allow the user to download/view it?

Sorry for the questions, this is possible to do, but I just need more inforamtion - most likely you'll need to incorporate AJAX...


--------

GOOGLE is a great resource to find answers to questions like "how do i..."


--------
 

The PDF is saved in a Folder for future processing. The user has the option to download this file at a future time to either view or save to their desktop.

Thx, Dave
 

We purchased software that will build the PDF and basically add this file to a folder on our web server after it is created. We are using MS-Sql 2005 to store other data but not the PDF's.

Thx, Dave
 
assuming that software you purchsed is in the form of a DLL...

When the user clicks "submit" to send the contents of the form, the .asp page should simply add the contents of that form into a table in your sql 2005.

Create a trigger in sql 2005 "on insert" to run the dll using this method:


It basically becomes a "job" that SQL will take care of.

We did something similar once at a place I worked, we use SQL to run an ftp dll for our web publishing. The request would be put in through a form, the site id would be sent to a db table an the sql would execute the ftp com object in the backgroud.

The user could close their browser window even log or turn off their machine and it would continue as normal...

There is a bit of a learning curve, you can search for "execute a dll from sql" for more/better examples, but once you get the hang of it, it's pretty easy to implement.

Another option would be to do the processing in a pop-up window and using javascript to close that window once the processing is complete (onload) -> be sure to include a message on the screen that says something like "your request is being processed, do not close this window, it will close automatically"




--------

GOOGLE is a great resource to find answers to questions like "how do i..."


--------
 


Great, seems like it will work, I will test these two solutions and respond back. If I have any questions, I will post a question back.

Thanks for the help, Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top