EktronUI: Dialog Button OnClick Event Causes Full Post Back

  • Updated

With the EktronUI Dialog control in ContentTemplate tag of ASP UpdatePanel, the Dialog Button's OnClick event causes a full post back.

Because of a z-index problem with IE7, the dialog is moved to be an immediate child of the form. In the process, the dialog is moved out of the update panel. Additionally, the dialog (jQuery UI Dialog) does this "out of the box," without any modifications from Ektron.

The following code snippet illustrates the problem.

 

<%@ page language="C#" autoeventwireup="true" codefile="D62843.aspx.cs" inherits="EktronUIRef_D62843" %> 
 
<%@ register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI"  >
TagPrefix="ektronUI" %> 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

 

using System;

 

using System.Collections.Generic;

 

using System.Linq;

 

using System.Web;

 

using System.Web.UI;

 

using System.Web.UI.WebControls;

 

 

 

public partial class EktronUIRef_D62843 : System.Web.UI.Page

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

 

}

 

 

 

protected void DiagBtn_Click(object sender, EventArgs e)

 

{

 

 

 

}

 

 

 

protected void UIBtn_Click(object sender, EventArgs e)

 

{

 

 

 

}

 

}