简体   繁体   English

更新面板外部但隐藏面板内部的asp.net c#文本框未更新

[英]asp.net c# textbox outside update panel but inside an hidden panel is not updated

I got a gridview inside an update panel with UpdateMode="Conditional" that is firing a SelectIndexChanged on each click on the rows filling a bunch of labels and a TextBox that are inside an hidden panel (connected to a ModalPopupExtender). 我在带有UpdateMode="Conditional"的更新面板中获得了gridview ,每次单击该行时,都会在隐藏面板(连接到ModalPopupExtender)中的填充一堆标签和TextBox的行上单击一次SelectIndexChanged

When I call the .Show for the ModalPopupExtender I was expecting to see the labels filled and the textbox with the data I fetched from the oracle blob but everything is empty. 当我为ModalPopupExtender调用.Show时 ,我期望看到填充的标签和文本框,其中包含我从oracle blob中获取的数据,但所有内容均为空。

If I check the .text property of the textbox is correctly filled as I expect but is not rendered when I call for the show. 如果我检查了文本框的.text属性,则可以按照我的预期正确填充,但在我进行演出时未呈现。 Any suggestion? 有什么建议吗?

If ModalPopupExtender is inside UpdatePanel then the data will not be available unless you update the update panel. 如果ModalPopupExtender在UpdatePanel内,则除非更新更新面板,否则数据将不可用。 Try calling Update() method of UpdatePanel control and data should be displayed. 尝试调用UpdatePanel控件的Update()方法,并且应该显示数据。

If ModalPopupExtender is not inside UpdatePanel, then move it inside update panel and call Update() method 如果ModalPopupExtender不在UpdatePanel内,则将其移动到更新面板内并调用Update()方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM