Example #1
0
        internal override void ProcessMainAttributes(IDictionary atts)
        {
            autoEventWireup = GetBool(atts, "AutoEventWireup", autoEventWireup);
            enableViewState = GetBool(atts, "EnableViewState", enableViewState);

            string value = GetString(atts, "CompilationMode", compilationMode.ToString());

            if (!String.IsNullOrEmpty(value))
            {
                try {
                    compilationMode = (CompilationMode)Enum.Parse(typeof(CompilationMode), value, true);
                } catch (Exception ex) {
                    ThrowParseException("Invalid value of the CompilationMode attribute.", ex);
                }
            }

            atts.Remove("TargetSchema");              // Ignored
            value = GetString(atts, "ClientIDMode", null);
            if (!String.IsNullOrEmpty(value))
            {
                try {
                    clientIDMode = (ClientIDMode)Enum.Parse(typeof(ClientIDMode), value, true);
                } catch (Exception ex) {
                    ThrowParseException("Invalid value of the ClientIDMode attribute.", ex);
                }
            }
            base.ProcessMainAttributes(atts);
        }
Example #2
0
		internal override void ProcessMainAttributes (IDictionary atts)
		{
			autoEventWireup = GetBool (atts, "AutoEventWireup", autoEventWireup);
			enableViewState = GetBool (atts, "EnableViewState", enableViewState);

			string value = GetString (atts, "CompilationMode", compilationMode.ToString ());
			if (!String.IsNullOrEmpty (value)) {
				try {
					compilationMode = (CompilationMode) Enum.Parse (typeof (CompilationMode), value, true);
				} catch (Exception ex) {
					ThrowParseException ("Invalid value of the CompilationMode attribute.", ex);
				}
			}
			
			atts.Remove ("TargetSchema"); // Ignored
			value = GetString (atts, "ClientIDMode", null);
			if (!String.IsNullOrEmpty (value)) {
				try {
					clientIDMode = (ClientIDMode) Enum.Parse (typeof (ClientIDMode), value, true);
				} catch (Exception ex) {
					ThrowParseException ("Invalid value of the ClientIDMode attribute.", ex);
				}
			}
			base.ProcessMainAttributes (atts);
		}
Example #3
0
		protected void ClearEffectiveClientIDMode ()
		{
			effectiveClientIDMode = null;
			if (!HasControls ())
				return;

			for (int i = 0; i < _controls.Count; i++)
				_controls [i].ClearEffectiveClientIDMode ();
		}