asp的邦定表达式异常 <_ %_ = strParentid _%_>不能传到下个页面
父页面:
<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;dialogwidth:510px;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的作用我还不是很明确。
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
edit_jobdoc.aspx中:
![](/Images/OutliningIndicators/None.gif)
另外:'edit_jobdoc.aspx?insert=0&ID='+id,'','.......' 最好用'edit_jobdoc.aspx?insert=0&ID='+id,'window',
window的作用我还不是很明确。