Esempio n. 1
0
        /// <summary>
        /// 获取cmd标签的内容
        /// </summary>
        /// <param name="cmd"></param>
        private void GetCMD(CMDTag cmd)
        {
            string value = cmd.QueryString("base");

            if (!string.IsNullOrEmpty(value))
            {
                if (this is IUC)
                {
                    this.SubpageExtends = value;
                }
                else
                {
                    this.Extends = value;
                }
            }
            //
            value = cmd.QueryString("callback");
            if (!string.IsNullOrEmpty(value))
            {
                this.CallBack = value.ToLower() == "true";
            }
            //
            value = cmd.QueryString("validaterequest");
            this.ValidateRequest = string.IsNullOrEmpty(value) ||
                                   value.ToLower() == "true";
            value = cmd.QueryString("enableviewstate");
            this.EnableViewState = !string.IsNullOrEmpty(value) &&
                                   value.ToLower() == "true";
            value = cmd.QueryString("usings");
            if (!string.IsNullOrEmpty(value))
            {
                this.Usings += value;
            }
            value = cmd.QueryString("using");
            if (!string.IsNullOrEmpty(value))
            {
                this.Usings += value;
            }
        }