コード例 #1
0
ファイル: RegisteredScript.cs プロジェクト: nobled/mono
		internal RegisteredScript (Control control, Type type, string key, string script, string url, bool addScriptTag, RegisteredScriptType scriptType) {
			_control = control;
			_type = type;
			_script = script;
			_url = url;
			_addScriptTags = addScriptTag;
			_scriptType = scriptType;
			_key = key;
		}
コード例 #2
0
 internal RegisteredScript(Control control, Type type, string key, string script, string url, bool addScriptTag, RegisteredScriptType scriptType)
 {
     _control       = control;
     _type          = type;
     _script        = script;
     _url           = url;
     _addScriptTags = addScriptTag;
     _scriptType    = scriptType;
     _key           = key;
 }
コード例 #3
0
 internal RegisteredScript(Control control, Type type, string key, string url) {
     Debug.Assert(control != null);
     Debug.Assert(type != null);
     Debug.Assert(!String.IsNullOrEmpty(url));
     // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed.
     _scriptType = RegisteredScriptType.ClientScriptInclude;
     _control = control;
     _type = type;
     _key = key;
     _url = url;
 }
コード例 #4
0
 internal RegisteredScript(Control control, Type type, string key, string url)
 {
     Debug.Assert(control != null);
     Debug.Assert(type != null);
     Debug.Assert(!String.IsNullOrEmpty(url));
     // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed.
     _scriptType = RegisteredScriptType.ClientScriptInclude;
     _control    = control;
     _type       = type;
     _key        = key;
     _url        = url;
 }
コード例 #5
0
        internal RegisteredScript(RegisteredScriptType scriptType,
                                  Control control,
                                  Type type,
                                  string key,
                                  string script,
                                  bool addScriptTags)
        {
            Debug.Assert(control != null);
            Debug.Assert(
                scriptType != RegisteredScriptType.OnSubmitStatement || !addScriptTags,
                "OnSubmitStatements cannot have addScriptTags.");
            Debug.Assert(type != null);
            // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed.
            // null script allowed

            _scriptType    = scriptType;
            _control       = control;
            _type          = type;
            _key           = key;
            _script        = script;
            _addScriptTags = addScriptTags;
        }
コード例 #6
0
        internal RegisteredScript(RegisteredScriptType scriptType,
            Control control,
            Type type,
            string key,
            string script,
            bool addScriptTags) {

            Debug.Assert(control != null);
            Debug.Assert(
                scriptType != RegisteredScriptType.OnSubmitStatement || !addScriptTags,
                "OnSubmitStatements cannot have addScriptTags.");
            Debug.Assert(type != null);
            // null and empty "key" are treated different by asp.net script duplicate detection so null is allowed.
            // null script allowed

            _scriptType = scriptType;
            _control = control;
            _type = type;
            _key = key;
            _script = script;
            _addScriptTags = addScriptTags;
        }