asp.net子窗口关闭局部刷新父窗口

子窗口
js

function CloseWin(target) {
    if (target) {
        target.$('#w').window('close');
    }
    else {
        parent.$('#w').window('close');
    }

__doPostBack('S1', '');
}

html

 

C#

 protected void erer(object sender, EventArgs e)
    {
        this.Response.Write("");

    }

父窗口

js

var winLists = new Array();
var winCount = 0;
function ShowWin(title, url, w, h) {
    winCount++;
    var winId = "w" + winCount.toString();
    winLists[winLists] = { "id": winLists, "title": title };
    $("

").appendTo("body");
   
    $('#' + winId).window({
        title: title,
        top: 30,
        width: w,
        height: h,
        modal: false,
        shadow: true,
        closed: true,
        resizable: true,
        content: ''
    });

    $('#' + winId).window('open');

}

  function UploadPhoto() {

              OpenWin("选择", ".a.aspx?,720, 450);
            return false;
        }

 

 

html

 

 

updatepanel  (其中用上面的linkbutton触发父页面的updatepanel 局部刷新)

你可能感兴趣的:(asp.net,function,server,iframe,object,url)