使用PageAsyncTask处理异步任务 [英] working with asynchronous task using PageAsyncTask

查看:63
本文介绍了使用PageAsyncTask处理异步任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好
需要在Function Start(OnBegin)处显示一些消息,并应显示启动和完成任务之间的状态.当我启动一个新的异步时,单击一个不同的按钮.所以我想在功能启动时提示一些信息.

Hi 
Need to display some message at Function Start(OnBegin) and should show the status in between start and complete task. as I am initiating one new asynchronous one different button click. so I want to some message when function starts .

例如:-

当我单击按钮时,通过

when I click on a button a function is registered for Asynchronous call through PageAsyncTask . Now I want to display on the button text("Process started") and after 2 second or;Before the task completed I click another Button for another task to be called as above process. Now same message should be displayed. And after completion of tasks it should show status in sequence.

例如,当第一个任务完成时,应将按钮"文本更改为任务完成"),当第二个任务完成时,相关按钮的状态应更改.

E.g when the 1st task was completed it should change the Button text to" Task completed") as like this when 2nd one is completed the status should change of the related BUtton.

我尝试了很多方法来执行此操作,但没有获得期望的输出.因此,请发送一些实时示例..

I have tried so many ways to do this but not got the desire output.So please send some live example..

推荐答案

查看此代码项目

See this code project

http://www.codeproject.com/Articles/25539 /multithread-in-MOSS-page-by-implementing-PageAsync


这篇关于使用PageAsyncTask处理异步任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆