点击imageButton按钮弹出新窗口后主窗口CSS失效?
protected void ibtnBrowse_Click(object sender, ImageClickEventArgs e)
{
string strCMD = Server.UrlEncode( "SELECT, " + strResIDS);
Response.Write( " <script language= 'javascript '> window.open ( 'SpecificationPrint.aspx?CMD= " + strCMD + " ', 'SpecificationShow ', ' '); </script> ");
}
点击根据选择记录弹出新窗口后 主窗口CSS样式 失效了,错在哪里呢?
[解决办法]
不要这样写
Response.Write( " <script language= 'javascript '> window.open ( 'SpecificationPrint.aspx?CMD= " + strCMD + " ', 'SpecificationShow ', ' '); </script> ");
可以这样
Labelxx.Text = ( " <script language= 'javascript '> window.open ( 'SpecificationPrint.aspx?CMD= " + strCMD + " ', 'SpecificationShow ', ' '); </script> ");