Code:
/ DotNET / DotNET / 8.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
- bidPrivateBase.cs
- RelatedPropertyManager.cs
- DataGridViewBand.cs
- DataGridColumnEventArgs.cs
- CustomAssemblyResolver.cs
- MembershipPasswordException.cs
- WebDisplayNameAttribute.cs
- RefType.cs
- WizardPanel.cs
- Type.cs
- precedingquery.cs
- ConsoleCancelEventArgs.cs
- EnterpriseServicesHelper.cs
- SessionStateContainer.cs
- TabControlEvent.cs
- ResourceExpressionEditor.cs
- AssemblyAttributes.cs
- JsonObjectDataContract.cs
- WebPartEditorCancelVerb.cs
- TypeDescriptionProviderAttribute.cs
- SpellCheck.cs
- ExpressionsCollectionEditor.cs
- GlyphCache.cs
- XmlRawWriterWrapper.cs
- HybridDictionary.cs
- JpegBitmapEncoder.cs
- DataListItem.cs
- Operand.cs
- RequestCacheEntry.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- PolicyLevel.cs
- DataFieldConverter.cs
- LinkDescriptor.cs
- DebugInfo.cs
- SecurityMode.cs
- DefaultCommandConverter.cs
- CustomPopupPlacement.cs
- EventHandlers.cs
- ToolTipService.cs
- ToolstripProfessionalRenderer.cs
- HtmlLabelAdapter.cs
- XmlSchemaAttributeGroup.cs
- BinHexDecoder.cs
- PhotoPrintingIntent.cs
- ToolStripContentPanelDesigner.cs
- DriveNotFoundException.cs
- SqlProfileProvider.cs
- TimestampInformation.cs
- SqlComparer.cs
- assertwrapper.cs
- StateDesigner.Helpers.cs
- DirectoryGroupQuery.cs
- CodeIdentifiers.cs
- BooleanStorage.cs
- GeneratedCodeAttribute.cs
- QuaternionAnimationBase.cs
- DataGridViewHitTestInfo.cs
- BitmapImage.cs
- RadioButtonRenderer.cs
- ListenerConnectionDemuxer.cs
- PagedDataSource.cs
- HwndMouseInputProvider.cs
- CultureInfo.cs
- SpotLight.cs
- BitSet.cs
- SimpleHandlerFactory.cs
- PropertyInfo.cs
- FeatureManager.cs
- BorderSidesEditor.cs
- XmlDocumentSerializer.cs
- SkipStoryboardToFill.cs
- CompoundFileStreamReference.cs
- DataGridCellInfo.cs
- QueryIntervalOp.cs
- AffineTransform3D.cs
- AdRotatorDesigner.cs
- SymDocumentType.cs
- CodeIdentifiers.cs
- MemoryPressure.cs
- TraceContextRecord.cs
- ListViewUpdatedEventArgs.cs
- DataGridBoundColumn.cs
- SocketInformation.cs
- ConnectionProviderAttribute.cs
- VideoDrawing.cs
- BitmapInitialize.cs
- ToolStripPanelCell.cs
- TablePattern.cs
- InvalidPropValue.cs
- XmlCharType.cs
- SelectionProviderWrapper.cs
- StringAttributeCollection.cs
- ExpressionBindings.cs
- AbstractSvcMapFileLoader.cs
- SoapIgnoreAttribute.cs
- Int32.cs
- BaseTemplatedMobileComponentEditor.cs
- GridSplitter.cs
- DecoratedNameAttribute.cs
- ConnectionsZone.cs