Gridview showModalDialog 刷新父窗口的问题
请问那位有源码吗,要全部的,包括Gridview显示的链接按钮,到父窗口的刷新啊
--------------------编程问答--------------------
function AddAnnouncement() {
var url = "AnnouncementEdit.aspx";
var width = 600;
var height = 450;
var result = showCenterModalDialog(url, width, height, null);
if (result == 'true') {
window.location.href = window.location.href;
}
}
function showCenterModalDialog(url, dlgWidth, dlgHeight, arg) {
var dlgLeft = (window.screen.width - dlgWidth) / 2;
var dlgTop = (window.screen.height - dlgHeight) / 2;
var widthTmp = dlgWidth;
var form = "scroll:no;status:no;dialogHeight:" + dlgHeight + "px;dialogWidth:" + widthTmp + "px;dialogLeft:" + dlgLeft + ";dialogTop:" + dlgTop;
var randomCode = new Date().valueOf();
if (url.indexOf("?") >= 0) {
url = url + "&" + randomCode;
} else {
url = url + "?" + randomCode;
}
return window.showModalDialog(url, arg, form);
}
page.ClientScript.RegisterClientScriptBlock(page.GetType(), Guid.NewGuid().ToString("N"), "window.returnValue='true';window.close();", true);
补充:.NET技术 , ASP.NET