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); }
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); }
protected void ClearEffectiveClientIDMode () { effectiveClientIDMode = null; if (!HasControls ()) return; for (int i = 0; i < _controls.Count; i++) _controls [i].ClearEffectiveClientIDMode (); }