如何在页面处理时更新aspx页面标签 [英] How Update aspx Page labels whenever the page is under process

查看:69
本文介绍了如何在页面处理时更新aspx页面标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我已经建立了一个小模块,可以从客户端向服务器发送5000个数据行。

在整个过程中我想更新标签,我想向最终用户显示已向服务器发送了多少行。这个标签更新过程必须在发送记录的过程之间完成..不是在发送所有数据行之后......非常奇怪,没人知道这个。专家请在jquery或ajax中给出一些想法......



提前感谢

(Keerthi Kumar)

Hi experts,

I have built a small module to send 5000 data row from client to server.
On this entire process i want to update the label and i wanted to show the end user that how many rows has been sent to the server. This label updation process has to be done in between the process of sending the records ..not after sending all the data rows...... its very strange that no one knows about this. Experts please give some ideas in jquery or in ajax......

thanks in advance
(Keerthi Kumar)

推荐答案

从评论中我提取出你正在传递数据Record by Record使用JQuery。



假设您当前的方法是这样的



From comments i extracted that you are passing data Record by Record consuming JQuery.

let say your current method is like this


.ajax({
类型:xxx
url:xxx
dataType:xxx


。} ).promise()。done( function (response){
alert(response);
});
.ajax({ type : xxx url : xxx dataType: xxx . . .}).promise().done(function( response){ alert(response); });





通过写一次更新它





update it by writing

var globalTransmitCount = 0;


.ajax({
类型:xxx
url:xxx
dataType:xxx


。})。promise()。done( function (response){
globalTransmitCount = globalTransmitCount + 1 ;
.ajax({ type : xxx url : xxx dataType: xxx . . .}).promise().done(function( response){ globalTransmitCount = globalTransmitCount + 1;


这篇关于如何在页面处理时更新aspx页面标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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