Asp.net常识问题,求助^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
其中strWhere是后台代码中的一个公有属性,我想在前端
<input id= "btnInsertCatalog " runat= "server " onclick= "javascript:window.open( 'InsertAsset_Bestow_Catalog.aspx?CatalogID= '+ <%#strWhere%> , 'newwindow ', 'width=400,height=150,left=300,top=200 '); "
onserverclick= "btnInsertCatalog_ServerClick " type= "button " value= "增加分类 " />
为什么CatalogID 不能得到strWhere的值,如何写
------解决方案--------------------那你就应该这么写了
private void Button1_ServerClick(object sender, System.EventArgs e)
{
Response.Write( " <script> window.open..... </script> ");
//或
Response.Redirect( "InsertAsset_Bestow_Catalog.aspx?CatalogID= "+str);
}