workflow question

  • Thread starter Thread starter maa
  • Start date Start date
M

maa

When a user clicks on "Processing" button I want to display a processing
message on page. Do processing and allow user to cancel processing which can
take several minutes.
Is there a way with javascript to display a message on the page but still do
server side hit for the processing.

Thanks,
Marc
 
Hi Mark,

One of the easiest ways to do this is through the Asp Ajax libraries.

For example, create a simple html button that calls a js function Process()
when clicked.

Within Process(), you want to add the javascript to show your 'processing'
message, and then call your server side code. You can call this code by
turning it into a web service, and adding that web service to the page's
script manager. This will let you call that web service very simply through
javascript.

If you want to cancel processing, you'd need to create a new web service
that will hunt down the processing operation and shut it down.

If you're not too familiar with the asp ajax model, I suggest you check out
the documentation, particularly:

http://www.asp.net/AJAX/Documentation/Live/mref/P_System_Web_UI_ScriptManager_Services.aspx

Regards,
Andrew
 
Back
Top