使用自动回发方法可以事件触发复选框 [英] Wihtout Using Autopost Back Method Can Event Fire CheckBox

查看:66
本文介绍了使用自动回发方法可以事件触发复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿...

我在WebPage的复选框属性上设置了CheckBox,将autopostback ="True"设置为autopostback的缺点是它会刷新整个页面..

我们可以在不使用自动回发方法的情况下执行所有操作吗?

任何示例

谢谢

Hey...

I have CheckBox on my WebPage checkbox properties set autopostback="True" the drawback of autopost back it''s refresh whole page..

can we perform all actions without using autopostback method...

any example

Thanks

推荐答案

要进行设置启用/可见操作,请使用javascript.不需要回发,因为它是客户端.对于数据发送/检索,请使用AJAX-无需完整的回发. AJAX参考-> getting-started-with-ajax-control-toolkit [ ^ ]
For set enable / visible operations, use javascript. Doesnt need postback as it is clientside. For data send / retrieve, use AJAX - no complete postback needed. Reference for AJAX --> get-started-with-the-ajax-control-toolkit[^]


u可以在更新面板中添加ur复选框.由于该区域只能回发
u can add ur checkbox in update panel.due to this only that area only postback


这篇关于使用自动回发方法可以事件触发复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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