[英]How can I use AutoPostBack inside UpdatePanel
I have two DropDownLists inside an UpdatePanel. 我在UpdatePanel中有两个DropDownLists。
The values shown inside the second are dependent of the selectedValue on the first, so, I need AutoPostBack=true. 第二个内部显示的值与第一个上的selectedValue相关,因此,我需要AutoPostBack = true。
But, whenever the selected value in the first DropDownList is changed causes the UpdatePanel reload. 但是,只要更改第一个DropDownList中的选定值,就会导致UpdatePanel重新加载。
How can this be solved? 如何解决呢?
PS.: The UpdatePanel's UpdateMode property is set to Conditional. PS .: UpdatePanel的UpdateMode属性设置为“条件”。
Thanks. 谢谢。
通过添加Page_Init以仅在首次充电时执行一些规则来解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.