DataControlReference.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / DataControlReference.cs / 1305376 / DataControlReference.cs

                            namespace System.Web.DynamicData { 
    using System;
    using System.ComponentModel;
    using System.Diagnostics.CodeAnalysis;
    using System.Drawing.Design; 
    using System.Security.Permissions;
    using System.Web.UI; 
 
    /// 
    /// Registers a DataControl for use with Dynamic Data 
    /// 
    public class DataControlReference {
        /// 
        /// Dynamic data manager registering the data control 
        /// 
        [Browsable(false)] 
        public DynamicDataManager Owner { 
            get;
            internal set; 
        }

        /// 
        /// ControlID of the DataControl 
        /// 
        [ 
        Category("Behavior"), 
        DefaultValue(""),
        IDReferenceProperty(), 
        ResourceDescription("DataControlReference_ControlID"),
#if !ORYX_VNEXT
        TypeConverter("System.Web.DynamicData.Design.DataControlReferenceIDConverter, " + AssemblyRef.SystemWebDynamicDataDesign),
#endif 
        SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID")
        ] 
        public string ControlID { 
            get;
            set; 
        }

        [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
        public override string ToString() { 
            if (String.IsNullOrEmpty(ControlID)) {
                return "DataControl"; 
            } 
            else {
                return "DataControl: " + ControlID; 
            }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Web.DynamicData { 
    using System;
    using System.ComponentModel;
    using System.Diagnostics.CodeAnalysis;
    using System.Drawing.Design; 
    using System.Security.Permissions;
    using System.Web.UI; 
 
    /// 
    /// Registers a DataControl for use with Dynamic Data 
    /// 
    public class DataControlReference {
        /// 
        /// Dynamic data manager registering the data control 
        /// 
        [Browsable(false)] 
        public DynamicDataManager Owner { 
            get;
            internal set; 
        }

        /// 
        /// ControlID of the DataControl 
        /// 
        [ 
        Category("Behavior"), 
        DefaultValue(""),
        IDReferenceProperty(), 
        ResourceDescription("DataControlReference_ControlID"),
#if !ORYX_VNEXT
        TypeConverter("System.Web.DynamicData.Design.DataControlReferenceIDConverter, " + AssemblyRef.SystemWebDynamicDataDesign),
#endif 
        SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID")
        ] 
        public string ControlID { 
            get;
            set; 
        }

        [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
        public override string ToString() { 
            if (String.IsNullOrEmpty(ControlID)) {
                return "DataControl"; 
            } 
            else {
                return "DataControl: " + ControlID; 
            }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK