简体   繁体   English

Devexpress ASPxPopupControl没有弹出

[英]Devexpress ASPxPopupControl not popping up

For some reason, this code isn't working: 出于某种原因,此代码无效:

Code-Behind 代码隐藏

protected void btnNote_Clicked(object sender, EventArgs e)
{
    DevExpress.Web.ASPxPopupControl.ASPxPopupControl notePopup = (DevExpress.Web.ASPxPopupControl.ASPxPopupControl)Master.FindControl("TaskBar").FindControl("pcNote").FindControl("notePopup");
    notePopup.ShowOnPageLoad = true;
}

.aspx (event) .aspx(事件)

<asp:Button ID="btnNote" runat="server" Text="Add Note" OnClick="btnNote_Clicked" />

I need to write a function that takes this popup control ('notePopup') and displays it, and I believe this is supposed to work, but for some reason, once the page is reloaded, there is no popup. 我需要编写一个带有弹出控件('notePopup')并显示它的函数,我相信这应该可行,但出于某种原因,一旦重新加载页面,就没有弹出窗口。

@Jordan, try to add the ASPxPopupControl inside the same MS UpdatePanel. @Jordan,尝试在同一个MS UpdatePanel中添加ASPxPopupControl。 In this case, I believe everything will work properly. 在这种情况下,我相信一切都会正常运作。 What are your results? 你有什么结果?

我自己想出来了,虽然我现在正在做的事情,我已经100%肯定我已经做了,而且我不确定还有什么可以改变影响我的结果,所以我关闭了这个问题。

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

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