在aspx页面中回发触发器问题 [英] Post back trigger problem in aspx page
本文介绍了在aspx页面中回发触发器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨专家,
我有一个奇怪的问题。
在我的一个aspx页面中,我有文件上传控制。
这个在更新面板后面添加保存按钮回发后触发。
我的示例代码
Hi Experts,
I have got one strange problem.
In one of my aspx page i have got file uploading control.
for this am adding save button in update panel post back trigger.
My sample code
<asp:UpdatePanel ID="udpSearch" runat="server" UpdateMode="Conditional">
<table>
<tr>
<td>
<asp:Button ID="btnSave" runat="server" />
</td>
</tr>
</table>
<Triggers>
<asp:PostBackTrigger ControlID="btnSave" />
</Triggers>
但点击保存按钮后整个页面都闪烁。
所以可以任何人请帮我解决这个问题。
提前谢谢
(Keerthi Kumar)
But on clicking save button the entire page is blinking .
so can any one please help me to solve this issue.
thanks in advance
(Keerthi Kumar)
推荐答案
我猜您正在寻找 AsyncPostBackTrigger
。
查看下面的文章
更新面板中的文件上传 [ ^ ]
check below article
File Upload in Update Panel[^]
您的UpdatePanel未按原样格式化.. 。 http://msdn.microsoft.com/ en-us / library / system.web.ui.updatepanel(v = vs.110).aspx [ ^ ]
你错过了ContentTemplate部分...
Your UpdatePanel not formatted as it should be...http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel(v=vs.110).aspx[^]
you missing the ContentTemplate part...
<asp:updatepanel id="udpSearch" runat="server" updatemode="Conditional">
<contenttemplate>
<table>
<tr>
<td>
<asp:button id="btnSave" runat="server" />
</td>
</tr>
</table>
</contenttemplate>
<triggers>
<asp:postbacktrigger controlid="btnSave" />
</triggers>
</asp:updatepanel>
这篇关于在aspx页面中回发触发器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文