如何在更新面板中控制或停止部分回发
我一直在使用更新面板,我所需要的是每当完成部分回发时,我需要检查决定是否继续将回发回服务器的条件,
目前我所知道的是我可以编写必要的代码我
function pageLoad(sender, args)
{
if (args.get_isPartialLoad()) {
// What should be done here to control the partial postback
}
}
正在尝试在带有部分回发的更新面板中执行传统的“退出前保存确认”
I have been using update panels , all i need is whenever a partial post back is done , i need to check for a condition which decides whether to proceed that post back to server or not
for now all i know is i can write the necessary code in
function pageLoad(sender, args)
{
if (args.get_isPartialLoad()) {
// What should be done here to control the partial postback
}
}
i am trying to do the conventional "save confirmation before exit" in update panels with partial postback
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将在 1 个示例中为您提供有关该问题的解决方案。
更新面板部分回发有一个开始、结束和初始化事件,并且附加
在这三个函数中,您可以控制您的部分回发
而且这条线也可以阻止你发回帖子,但我认为这只是在异步情况下
I will provide you a solution about that matter in 1 example.
There is a begin ,end and initialize events for the update panel partial post back and it attached as follow
in these 3 functions, you can control your partial post backs
and also this line can stop your post back but I think it's only in async case