在回发期间更新标签 [英] Updating a label during a postback

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

问题描述

您好我想知道是否可以在回发期间更新标签?



我有一个程序可以读取文件并且因为它读取每行插入进入数据库的行。

有超过1个文件,一般用户将上传的zip文件文件解压缩到临时文件夹读取并插入所有文件的行。



所有文件中包含的记录数量约为1.3mil。

我想知道如何向每个10000条记录显示更新阅读

i有一个计数器

,计算每行已被读取。

Hi i would like to know is it possible to update a label during a postback?

I have a program that reads files and as it reads each line inserts the line into the database.
There is more than 1 file, generally the user would upload a zip file file is unzipped to a temp folder read and inserts the lines of all the files.

the quantity of records contained in all the files is around 1.3mil.
I would like to know how could i show them an update every 10000 records been read
i have a counter
that counts as each line has been read.

推荐答案





1)尝试实例化一个线程,并根据后端执行的操作为线程创建一个异步调用,并在UI中进行更新,我不是所以确定Label控件,可以向用户显示一个简单的HTML Popup。



2)创建一个处理程序文件[.ashx]并使用javascript触发后端操作并更新用户屏幕。
Hi,

1) Try to instantiate a Thread and based on the operation that is performed at backend create a asynchronous call for the thread and make the update in the UI, where I am not so sure about Label control, where a simple HTML Popup can be shown to the user.

2) Create a Handler File [.ashx] and trigger the back end operations using the javascript and update the user screen.


这篇关于在回发期间更新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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