请教:Window.open()弹出新窗口的有关问题
default.aspx通过window.open()弹出新窗口default2.aspx,同时把id值传给default2.aspx,但是default2.aspx却显示不出相应的内容,页面里面全是空白,请高手们帮帮忙吧!!!
default1.aspx页面有关代码:
<body>
<form id= "form1 " runat= "server ">
<div>
<asp:GridView ID= "GridView1 " runat= "server " AutoGenerateColumns= "False "
DataSourceID= "SqlDataSource1 " Height= "526px " Style= "z-index: 100; left: 137px;
position: absolute; top: 13px " Width= "745px " BorderWidth= "0px " OnSelectedIndexChanged= "GridView1_SelectedIndexChanged ">
<Columns>
<asp:TemplateField SortExpression= "title ">
<ItemTemplate>
<a href= "#?id= <%#DataBinder.Eval(Container.DataItem, "id ") %> " onclick= "auto_open() ">
<%#DataBinder.Eval(Container.DataItem, "title ") %>
</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID= "SqlDataSource1 " runat= "server " ConnectionString= " <%$ ConnectionStrings:6ConnectionString %> "
SelectCommand= "SELECT * FROM [90] "> </asp:SqlDataSource>
</div>
</form>
<script language= "javascript ">
function auto_open()
{
window.open( "default2.aspx ", " ", "toolbar=yes,menubar=yes,resizable=yes,width=200,height=300,left=200,top=0,scrollbars=yes ");
}
&nbs