没有按钮点击的PageMethod呼叫 [英] PageMethod call without button click

查看:82
本文介绍了没有按钮点击的PageMethod呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在没有用户点击任何按钮的情况下使用PageMethod调用服务器端方法?



我的要求是,当会话到期时,然后调用服务器方法将控制值保存到db。





谢谢。

Hi,

how to call a server side method by using PageMethod without any button click from the user?

My requirment is, when session expires, then call the server method to save the control values to db.


Thanks.

推荐答案

客户端不知道会话何时到期。你提出这个问题的次数并不重要,答案总是一样的。你可以做的最好是使用一个计时器( window.setInterval [ ^ ])
The client doesn't know when the session has expired. It doesn't matter how many times you ask this question, the answer is always going to be the same. Best you can do is use a timer (window.setInterval[^])


这篇关于没有按钮点击的PageMethod呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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