web开发中的回调函数???在线等。。。 可以考虑Web services,Web services支持异步调用,你可以将较长的操作时放到Web services中。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 按你的意思是我需要建个服务来处理业务.net中的线程不支持异步调用吗? 用异步委托delegate int Count(int a);Count del =new Count(你的函数);IAsyncReslut ar =del.BeginInvoke(10000,null,null);.............if(ar.IsCompleted){int count=del.EndInvoke(ar);}else{以后再试}也可以使用CALLBACK方式delegate int Count(int a);Count del =new Count(你的函数);AsyncCallback ab=new AsyncCallback(yourcallback)IAsyncReslut ar =del.BeginInvoke(10000,ab,null);............. 用webService可以满足你的调用结束时通知前台界面的要求参考:http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/behaviors/library/webservice/default.asp可以下载webservice.htc更方便调用webservice 我用CALLBACK方式 delegate int Count(); ------------- Count del =new Count(我的函数); AsyncCallback ab=new AsyncCallback(this.callback); del.BeginInvoke(ab,null); private void callback(IAsyncResult handle) { this.textbox1.Text = "ok"; }可是文本框里面始终赋不上值,单步调试确可以运行到赋值那句,可界面就是显示不出来。请高手指教!!! MSDN有分頁的樣例,你自已看一下啊!很簡單的! 我用CALLBACK方式 delegate int Count(); ------------- Count del =new Count(我的函数); AsyncCallback ab=new AsyncCallback(this.callback); del.BeginInvoke(ab,null); private void callback(IAsyncResult handle) { this.textbox1.Text = "ok"; }可是文本框里面始终赋不上值,单步调试确可以运行到赋值那句,可界面就是显示不出来。请高手指教!!! 处理结束时需要通知前台界面完成===========>这个恐怕做不到,但可以实现发邮件通知用户,在asp.net中使用多线程可以参看这篇文章:http://www.sitepoint.com/print/threading-asp-net 请问一下。如何在后台输入整个页面的数据?? 这个功能如何实现?帮帮忙。 网页不居中? 发个ASP.net的考试题给大家玩玩.... 谁有crm的系统源代码吗?谢谢 请问,怎样从web程序里面把数值传递给水晶报表的参数字段。 求助各位大狭,不慎感激!!! asp.net 怎樣調用水晶報表﹖ 在页面中实现事务?我就只有70分了 DataList控件内的条件判断问题 如何在flashmx2004中发送的消息在asp.net中的socket通信,处理,返回? asp.net WebCtrl如何保持其状态
.net中的线程不支持异步调用吗?
delegate int Count(int a);
Count del =new Count(你的函数);
IAsyncReslut ar =del.BeginInvoke(10000,null,null);
.............
if(ar.IsCompleted)
{
int count=del.EndInvoke(ar);
}
else
{
以后再试}
也可以使用CALLBACK方式
delegate int Count(int a);
Count del =new Count(你的函数);
AsyncCallback ab=new AsyncCallback(yourcallback)
IAsyncReslut ar =del.BeginInvoke(10000,ab,null);
.............
参考:
http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/behaviors/library/webservice/default.asp可以下载webservice.htc更方便调用webservice
delegate int Count();
-------------
Count del =new Count(我的函数);
AsyncCallback ab=new AsyncCallback(this.callback);
del.BeginInvoke(ab,null); private void callback(IAsyncResult handle)
{
this.textbox1.Text = "ok";
}可是文本框里面始终赋不上值,单步调试确可以运行到赋值那句,可界面就是显示不出来。
请高手指教!!!
delegate int Count();
-------------
Count del =new Count(我的函数);
AsyncCallback ab=new AsyncCallback(this.callback);
del.BeginInvoke(ab,null); private void callback(IAsyncResult handle)
{
this.textbox1.Text = "ok";
}可是文本框里面始终赋不上值,单步调试确可以运行到赋值那句,可界面就是显示不出来。
请高手指教!!!
===========>
这个恐怕做不到,但可以实现发邮件通知用户,在asp.net中使用多线程可以参看这篇文章:http://www.sitepoint.com/print/threading-asp-net