2 // System.Web.UI.WebControls.Content.cs
5 // Lluis Sanchez Gual (lluis@novell.com)
7 // (C) 2005-2010 Novell, Inc.
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.ComponentModel;
34 namespace System.Web.UI.WebControls
37 [DesignerAttribute ("System.Web.UI.Design.WebControls.ContentDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
38 [ControlBuilder(typeof(ContentBuilderInternal))]
39 public class Content: Control, INamingContainer, INonBindingContainer
41 [ThemeableAttribute (false)]
42 [DefaultValueAttribute ("")]
43 [WebCategoryAttribute ("Behavior")]
44 [IDReferencePropertyAttribute (typeof(ContentPlaceHolder))]
45 public string ContentPlaceHolderID {
46 get { return String.Empty; }
47 set { throw new NotSupportedException (); }
50 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
52 public new event EventHandler DataBinding {
53 add { base.DataBinding += value; }
54 remove { base.DataBinding -= value; }
57 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
59 public new event EventHandler Disposed {
60 add { base.Disposed += value; }
61 remove { base.Disposed -= value; }
64 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
66 public new event EventHandler Init {
67 add { base.Init += value; }
68 remove { base.Init -= value; }
71 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
73 public new event EventHandler Load {
74 add { base.Load += value; }
75 remove { base.Load -= value; }
78 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
80 public new event EventHandler PreRender {
81 add { base.PreRender += value; }
82 remove { base.PreRender -= value; }
85 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
87 public new event EventHandler Unload {
88 add { base.Unload += value; ; }
89 remove { base.Unload -= value; }