简体   繁体   中英

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)

<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.

@Jordan, try to add the ASPxPopupControl inside the same MS UpdatePanel. In this case, I believe everything will work properly. What are your results?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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