ClientScriptManager cs = Page.ClientScript;
            Type cstype = this.GetType();
            String csname = "PopupScriptSuccess";            // Check to see if the startup script is already registered.
            if (!cs.IsStartupScriptRegistered(cstype, csname))
            {
                String cstext = "alert('成功添加记录。');if(confirm('是否打印发料单?')) window.open('print.aspx?id=" + insertedDeliveryID + "','_blank','fullscreen=0,menubar=no,location=no,scrollbars=auto,resizable=yes,status=yes');"
                    +"window.location.href=window.location.href";
                cs.RegisterStartupScript(cstype, csname, cstext, true);
            }.gettype方法我是看了很多例子了还是不明白!尤其是if (!cs.IsStartupScriptRegistered(cstype, csname))给重点解释下吧,
ClientScriptManager 这个东西跟.IsStartupScriptRegistered方法也不明白,哎,太笨了!
今天提问了N次了,没大有分了,还请见谅