asp:UpdatePanel 带有 ASP.NET 复选框触发器
当我将 ASP.NET 复选框控件设置为 ASP.NET 更新面板的异步回发触发器时,EventName 属性是什么?
What is the EventName property when I set up a ASP.NET checkbox control as an async postback trigger for an asp.net update panel?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我相信它是CheckedChanged。
I believe it is CheckedChanged.
您所要做的就是将 AutoPostback 设置为 true,如果您的 CheckBox 位于 UpdatePanel 中,您应该不会有任何问题
然后在 OnCheckedChanged 函数中您可以执行任何您需要执行的操作
All you have to do is set AutoPostback to true and if your CheckBox is within the UpdatePanel you shouldnt have any problems
Then in the OnCheckedChanged function you can do whatever you need to do
OnCheckedChanged 是事件名称。 您可以通过双击 UI 中的复选框来自动生成该方法,并根据复选框名称生成最有可能是的方法:
OnCheckedChanged is the event name. You can autogenerate the method by double clicking the checkbox in the UI, and based on the checkbox name it will generate the method which will most likely be: