Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

workflow question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maa - 30 Dec 2007 16:14 GMT
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
Andrew - 30 Dec 2007 22:45 GMT
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_Se
rvices.aspx


Regards,
Andrew

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.