• ClientScript


     1if (!ClientScript.IsClientScriptBlockRegistered("clientScript")) 
     2        {
     3            String scriptString = @"<script language=JavaScript>window.showModalDialog('print_encasementinform.aspx?parentid=" + this.Hidden1.Value.Trim().ToString() + "',window,'status:Modeless;edge:raised;unadorned:no;scroll=yes;resizable:yes;center=yes;help:no;dialogWidth:100;DialogHeight:100;');</script>";
     4            ClientScript.RegisterClientScriptBlock(this.GetType(),"clientScript", scriptString);
     5        }

     6//代替下面的
     7        if (!this.IsClientScriptBlockRegistered("clientScript"))
     8        {
     9            String scriptString = @"<script language=JavaScript>window.showModalDialog('print_encasementinform.aspx?parentid=" + this.Hidden1.Value.Trim().ToString() + "',window,'status:Modeless;edge:raised;unadorned:no;scroll=yes;resizable:yes;center=yes;help:no;dialogWidth:100;DialogHeight:100;');</script>";
    10            this.RegisterClientScriptBlock("clientScript", scriptString);
    11        }
  • 相关阅读:
    【poj2828】Buy Tickets
    【hdu2795】Billboard
    【hdu1394】Minimum Inversion Number
    【BZOJ1012】 【JSOI2008】最大数maxnumber
    【hdu】p1754I Hate It
    【线段树模板】
    Day1
    synchronized底层原理
    Java之浅拷贝和深拷贝
    图解算法——恢复一棵二叉搜索树(BST)
  • 原文地址:https://www.cnblogs.com/simhare/p/852561.html
Copyright © 2020-2023  润新知