模式对话框

Parent.aspx:
1. a与b是或的关系
a:
 <a href="#" onclick="<%# string.Format("javascript:Telligent_Modal.Open('{0}',456,290, reloadData);","child.aspx") %>" Class="BoxButton" >编辑</a>
  b:
 <CS:ModalLink CssClass="CommonTextButton" ModalType="Link" Height="270" Width="485" runat="Server" Text="增加兑换产品" Callback="reloadData" id="mlCreatePP" />
mlCreatePP.Url="child.aspx"

2.<script language = "javascript" type="text/javascript">
function reloadData(res) {
   
    if(res)
    {
      $get('<%= this.btnRefresh.ClientID %>').click();
 }
}
</script>

 

child.aspx:

1..Ok-sever:
private void OkClick(object sender, EventArgs e)
        {   
            //你的一些操作
   //关闭该页面。让刷新父页面      
            Modal.ClosePage(this.Page, "true");
        }
2.cancel-client:
<script type="text/javascript">
  function closeModal()
  {
   window.parent.Telligent_Modal.Close(false);
  }
</script>

 

 

 

 

 

posted @ 2007-07-04 16:47  烈马狂生  阅读(290)  评论(0编辑  收藏  举报