RepeaterDataBoundAdapter.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 / RepeaterDataBoundAdapter.cs / 1305376 / RepeaterDataBoundAdapter.cs

                            #if !ORYX_VNEXT 
namespace System.Web.DynamicData {
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls; 

    internal class RepeaterDataBoundAdapter : System.Web.UI.WebControls.IDataBoundControl { 
        private Repeater _repeater; 
        public RepeaterDataBoundAdapter(Repeater repeater) {
            _repeater = repeater; 
        }

        public string[] DataKeyNames {
            get { 
                return null;
            } 
            set { 
                throw new NotImplementedException();
            } 
        }

        public string DataMember {
            get { 
                return _repeater.DataMember;
            } 
            set { 
                _repeater.DataMember = value;
            } 
        }

        public object DataSource {
            get { 
                return _repeater.DataSource;
            } 
            set { 
                _repeater.DataSource = value;
            } 
        }

        public string DataSourceID {
            get { 
                return _repeater.DataSourceID;
            } 
            set { 
                _repeater.DataSourceID = value;
            } 
        }

        public IDataSource DataSourceObject {
            get { 
                return Misc.FindControl(_repeater, DataSourceID) as IDataSource;
            } 
        } 
    }
} 
#endif

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
#if !ORYX_VNEXT 
namespace System.Web.DynamicData {
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls; 

    internal class RepeaterDataBoundAdapter : System.Web.UI.WebControls.IDataBoundControl { 
        private Repeater _repeater; 
        public RepeaterDataBoundAdapter(Repeater repeater) {
            _repeater = repeater; 
        }

        public string[] DataKeyNames {
            get { 
                return null;
            } 
            set { 
                throw new NotImplementedException();
            } 
        }

        public string DataMember {
            get { 
                return _repeater.DataMember;
            } 
            set { 
                _repeater.DataMember = value;
            } 
        }

        public object DataSource {
            get { 
                return _repeater.DataSource;
            } 
            set { 
                _repeater.DataSource = value;
            } 
        }

        public string DataSourceID {
            get { 
                return _repeater.DataSourceID;
            } 
            set { 
                _repeater.DataSourceID = value;
            } 
        }

        public IDataSource DataSourceObject {
            get { 
                return Misc.FindControl(_repeater, DataSourceID) as IDataSource;
            } 
        } 
    }
} 
#endif

// 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