<script language="javascript" type="text/javascript">
function Linkurl(id)//invoked by 新增 按钮
{
var mywin=window.showModalDialog('edit_jobdoc.aspx?insert=0&ID='+id,'','status:Modeless;edge:raised;unadorned:no;scroll=no;resizable:yes;center=yes;help:no;dialog510px;dialogheight:315px');
if(mywin=='refresh')
{
document.getElementById('btnRefresh').click();
}
}
</script>
function Linkurl(id)//invoked by 新增 按钮
{
var mywin=window.showModalDialog('edit_jobdoc.aspx?insert=0&ID='+id,'','status:Modeless;edge:raised;unadorned:no;scroll=no;resizable:yes;center=yes;help:no;dialog510px;dialogheight:315px');
if(mywin=='refresh')
{
document.getElementById('btnRefresh').click();
}
}
</script>
<input id="Button1" class="btn" type="button" value="新增" onclick="javascript:Linkurl('<%=strParentid %>');" />
如果加上runat=server 在子页面就得不到ID的值了,edit_jobdoc.aspx中:
strID = Request.QueryString["ID"].ToString();
断点得到的{insert=0&ID=%3c%25%3dstrParentid+%25%3e}另外:'edit_jobdoc.aspx?insert=0&ID='+id,'','.......' 最好用'edit_jobdoc.aspx?insert=0&ID='+id,'window',
window的作用我还不是很明确。