如何只在一个按钮上单击显示进度条? [英] How to show progress bar on a only one button click?
本文介绍了如何只在一个按钮上单击显示进度条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的开发人员,
根据要求,我必须创建一个表格,其中多次将表格发回服务器,
,例如:在checked_changes,selection_changed等上,但只有在单击特定按钮时我才需要显示进度条。我需要3个按钮。我怎么能实现这个目标?
先谢谢..
Dear developers,
As per requirements I have to create a form where form many times posted back to server,
e.g. on checked_changes,selection_changed etc. but I have to show progress bar only when a specific button is clicked. I have to 3 buttons in form. How could I achieve this?
Thanks in advance..
推荐答案
试试这个...
。在特定按钮上单击
首先调用此
ScriptManager.RegisterClientScriptBlock(this,this.GetType(),alert,showdiv();,true );
并且最后执行后再次调用它
ScriptManager.RegisterClientScriptBlock(this,this.GetType(),alert ,hidediv();,true);
showdiv
Try this...
on that particular button click
at first call this
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alert", "showdiv();", true);
and at last after all execution call this again
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alert", "hidediv();", true);
on showdiv
('#your-div')。show();
和hidediv
('#your-div').show();
and on hidediv
('#your-div')。hide();
并在你的div中添加一个加载gif ..
('#your-div').hide();
and put a loading gif within your-div..
这篇关于如何只在一个按钮上单击显示进度条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文