如何在回发触发器功能上包含Ajax更新进度 [英] How Do I Include Ajax Update Progress On Postback Trigger Function
问题描述
您好我已经尝试使用回发触发器中的Button事件的Ajax更新进度,因为更新进度不起作用我该怎么做才能使它工作。
我也尝试过使用Java Script,但是在使用它时双击只有更新进度工作。
< triggers> < asp:PostBackTrigger ControlID =btnSend/>
/触发器>
< asp:Button ID =btnSendrunat =serverCssClass =hrmbuttomText =SendOnClick =btnSend_ClickClientIDMode =StaticOnClientClick =return postbackButtonClick(); ValidationGroup =Save/>
和用于此的Java脚本
< script type =text / javascript>
var updateProgress = null;
函数postbackButtonClick(){
updateProgress = $ find(<%= UpdateProgress1.ClientID%>);
window.setTimeout(updateProgress.set_visible(true),updateProgress.get_displayAfter());
返回true;
}
< / script>
任何解决方案....
Hi i have tried to use the Ajax Update Progress for the Button event which is in postback trigger, since the update progress is not working what shall i do to make it working.
I have also tried using the Java Script but while Using that on double Click only the Update Progress working.
<triggers> <asp:PostBackTrigger ControlID="btnSend" />
/Triggers>
<asp:Button ID="btnSend" runat="server" CssClass="hrmbuttom" Text="Send" OnClick="btnSend_Click" ClientIDMode="Static" OnClientClick="return postbackButtonClick();" ValidationGroup="Save" />
and the Java Script Used for this is
<script type="text/javascript">
var updateProgress = null;
function postbackButtonClick() {
updateProgress = $find("<%= UpdateProgress1.ClientID %>");
window.setTimeout("updateProgress.set_visible(true)", updateProgress.get_displayAfter());
return true;
}
</script>
Any Sollutions....
推荐答案
find(<%= UpdateProgress1.ClientID%>);
window.setTimeout( updateProgress.set_visible(true),updateProgress.get_displayAfter());
返回true;
}
< / script>
任何Sollutions ....
find("<%= UpdateProgress1.ClientID %>");
window.setTimeout("updateProgress.set_visible(true)", updateProgress.get_displayAfter());
return true;
}
</script>
Any Sollutions....
这篇关于如何在回发触发器功能上包含Ajax更新进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!