如何在页面中点击按钮打开新页面(初始页面不关闭),输入数据

来源:百度知道 编辑:UC知道 时间:2024/07/04 23:10:08
然后返回到初始页面并进行更新,并且只是更新父窗体中的GridView中的一行数据,但不重载父窗体?因为gridview是绑定数据库的,所以不能重载父窗体。高手指点!!!

给一个例子给你
<script>
<!--
//打开新窗口
function popnew(url,title,width,height){
var w = 1024;
var h = 768;
if (document.all || document.layers){
w = screen.availWidth;
h = screen.availHeight;
}
var leftPos = (w/2-width/2);
var topPos = (h/2.3-height/2.3);
window.open(url,title,"width="+width+",height="+height+",top="+topPos+",left="+leftPos+",scrollbars=no,resizable=no,status=no")}
-->
</script>
<td width="78%"><input name="tags" type="text" value="" showName="tag" required="true" /> <img src="images/insert.gif" alt="插入已经使用的Tag" onclick="popnew('11111.htm','tag','25