Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / ListControlDataBindingHandler.cs / 1 / ListControlDataBindingHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System.Design; using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Web.UI; using System.Web.UI.WebControls; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class ListControlDataBindingHandler : DataBindingHandler { ///[To be supplied.] ////// /// public override void DataBindControl(IDesignerHost designerHost, Control control) { Debug.Assert(control is ListControl, "Expected a ListControl"); DataBinding dataSourceBinding = ((IDataBindingsAccessor)control).DataBindings["DataSource"]; if (dataSourceBinding != null) { ListControl listControl = (ListControl)control; listControl.Items.Clear(); listControl.Items.Add(SR.GetString(SR.Sample_Databound_Text)); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QuotedStringWriteStateInfo.cs
- StatusBar.cs
- NestedContainer.cs
- Accessors.cs
- EUCJPEncoding.cs
- AssemblySettingAttributes.cs
- Light.cs
- ReadOnlyCollectionBase.cs
- DbgUtil.cs
- ProfileInfo.cs
- BooleanAnimationUsingKeyFrames.cs
- CssStyleCollection.cs
- DtdParser.cs
- MaterialCollection.cs
- TextEditorSelection.cs
- EngineSiteSapi.cs
- XmlFormatWriterGenerator.cs
- ReaderWriterLockWrapper.cs
- ScrollBar.cs
- TypeDescriptionProviderAttribute.cs
- StorageTypeMapping.cs
- RequestSecurityTokenResponse.cs
- DataGridViewCellStateChangedEventArgs.cs
- HttpWebRequestElement.cs
- PrintSchema.cs
- MarkedHighlightComponent.cs
- DeferredElementTreeState.cs
- BulletDecorator.cs
- SpecialFolderEnumConverter.cs
- SoapTransportImporter.cs
- SqlIdentifier.cs
- ADMembershipUser.cs
- Models.cs
- StateMachineHelpers.cs
- ObjectItemCollection.cs
- PatternMatchRules.cs
- PasswordBoxAutomationPeer.cs
- SubMenuStyle.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PropertyChangedEventManager.cs
- PointUtil.cs
- VisualStates.cs
- PropertyChangedEventArgs.cs
- DataExpression.cs
- CountAggregationOperator.cs
- XsltQilFactory.cs
- UnsafeMethods.cs
- CodeTypeReferenceCollection.cs
- SizeFConverter.cs
- SystemPens.cs
- HttpProtocolImporter.cs
- SplineKeyFrames.cs
- relpropertyhelper.cs
- NotFiniteNumberException.cs
- X509Extension.cs
- StringStorage.cs
- XmlCompatibilityReader.cs
- SqlCrossApplyToCrossJoin.cs
- ListViewDesigner.cs
- ZipArchive.cs
- BoundingRectTracker.cs
- TextInfo.cs
- KeyValueConfigurationCollection.cs
- DefaultBinder.cs
- IgnoreFileBuildProvider.cs
- cookie.cs
- ErrorEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- CollectionBase.cs
- ClientApiGenerator.cs
- SQLInt32Storage.cs
- ExeContext.cs
- PropertyChangingEventArgs.cs
- Helpers.cs
- ActivityDesignerHighlighter.cs
- ObjectTypeMapping.cs
- MarshalByValueComponent.cs
- MetaChildrenColumn.cs
- WorkflowIdleElement.cs
- SafeMILHandleMemoryPressure.cs
- Matrix3D.cs
- SystemWebExtensionsSectionGroup.cs
- CaseStatement.cs
- LocalizationComments.cs
- MenuAdapter.cs
- GradientStopCollection.cs
- DataGridViewRowStateChangedEventArgs.cs
- PageAsyncTaskManager.cs
- SplitterEvent.cs
- EndpointInstanceProvider.cs
- ObjectDataSource.cs
- ListInitExpression.cs
- FrameworkRichTextComposition.cs
- SafeNativeMethods.cs
- DesignConnectionCollection.cs
- SqlProviderServices.cs
- DataGridViewDesigner.cs
- XmlHelper.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ListItemParagraph.cs