模態窗口返回參數以及子頁面獲取父頁面方法


        
System.Text.StringBuilder strReloadData = new System.Text.StringBuilder();
strReloadData.Append("try{window.returnValue ='Y'; window.opener = null;window.close();}catch(ex){ }");
ClientScript.RegisterStartupScript(this.GetType(), "", strReloadData.ToString(), true);
        
// 獲取模式窗口父頁面的Html控件
function getObjD(id)
{
    if (!id)
    {
        return null;
    }
    return window.dialogArguments.document.getElementById(id);
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章