如何在时间间隔内多次调用服务器端的函数 [英] how to make multiple call to a function on serverside with time interval

查看:70
本文介绍了如何在时间间隔内多次调用服务器端的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中有一个UniqueRandomNumber()函数,并且希望在服务器端而不是客户端调用此函数25次,因此所有客户端都将能够在单击按钮时以及每次生成新键时看到所有先前调用的号码分配给标签的号码,并且每次调用功能后必须等待3-5秒.

I have one UniqueRandomNumber() function in asp.net and want to call this function 25 times on server side not on client side so all client will able to see all previously called number on single clicking on button and every time new generated number assign to a label and after every call funtion has to wait for 3-5 sec.

推荐答案

总体而言,您听起来像是从客户端与服务器端对话.您的问题不太清楚.
为了从客户端与服务器对话,
通过客户端(Javascript)与服务器端进行交互的方法很少:
1. XMLHttpRequest [回调 [ Web服务调用 [ PageMethod [
Overall, you sound like talking to server side from client side. Your question is not too clear.
In order to talk to server from client,
There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]


这篇关于如何在时间间隔内多次调用服务器端的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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