Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2005, 08:23 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to interrupt processing the LOOP in ASP.NET

Hello,
I have a problem to interrupt (cancel) processing the LOOP in ASP.NET application. If I click the "Cancel" button on the WEB form, the event is not firing. How to implement this interruption with or without multithreading?
Any ideas or examples will be appreciated.
-Dmitriy


 
Old November 29th, 2006, 07:13 AM
Registered User
 
Join Date: Aug 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With multithreading you need to create an object of Thread and then start and abort/suspend.
For Eg.
using System.Threading;

Thread myThread;

then

myThread = new Thread(new ThreadStart(MyMethod));
MyThread.Start;

and for canceling

MyThread.Abort;

 
Old November 29th, 2006, 12:19 PM
Authorized User
 
Join Date: Sep 2006
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,what loop are u using.
Any way u can use "break" statement to exit the loop






Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax for a processing loop dhollis XSLT 3 September 7th, 2006 02:44 PM
How to interrupt processing the LOOP in ASP.NET Dmitriy General .NET 2 January 13th, 2006 08:43 AM
How to interrupt processing the LOOP in ASP.NET Dmitriy ASP.NET 1.0 and 1.1 Professional 2 December 15th, 2005 04:16 PM
How to interrupt processing the LOOP in ASP.NET Dmitriy Classic ASP Professional 0 December 13th, 2005 08:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.