后台给前台服务器控件添加样式

if (this.rBtn1.Checked)//組異動
        {
            strgp = "0";
            this.tr1.Style.Add("display", "block");
            this.tr2.Style.Add("display", "block");
            this.tr3.Style.Add("display", "block");
            this.tr4.Style.Add("display","none");
            this.new2.Style.Add("display", "none");
        }
        if (this.rBtn2.Checked)//個人異動
        {
            strgp = "1";
            this.tr1.Style.Add("display", "none");
            this.tr2.Style.Add("display", "none");
            this.tr3.Style.Add("display", "none");
            this.tr4.Style.Add("display", "block");
            this.new2.Style.Add("display", "block");
        }
posted @ 2008-09-18 11:15  XGU_Winner  阅读(420)  评论(0编辑  收藏  举报