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
- SiteMapDataSourceView.cs
- ToolStripContainer.cs
- CodeArgumentReferenceExpression.cs
- SplitContainer.cs
- XmlSchemaAppInfo.cs
- VersionPair.cs
- DataGridItemCollection.cs
- DispatcherTimer.cs
- RegistrationServices.cs
- CacheModeValueSerializer.cs
- FontEmbeddingManager.cs
- CodeComment.cs
- rsa.cs
- ImportContext.cs
- ConstraintCollection.cs
- UntrustedRecipientException.cs
- ToolTip.cs
- LiteralSubsegment.cs
- JoinCqlBlock.cs
- SerializationStore.cs
- HtmlTableRow.cs
- Validator.cs
- PartitionResolver.cs
- Html32TextWriter.cs
- StructuredTypeEmitter.cs
- EpmSourcePathSegment.cs
- LockedBorderGlyph.cs
- DataBoundControlHelper.cs
- KeyBinding.cs
- TypeDescriptionProviderAttribute.cs
- FtpWebRequest.cs
- Gdiplus.cs
- webeventbuffer.cs
- WebPartConnectVerb.cs
- UICuesEvent.cs
- SQLBoolean.cs
- NameValueCollection.cs
- SqlTypesSchemaImporter.cs
- VoiceInfo.cs
- HostingMessageProperty.cs
- DataGridSortingEventArgs.cs
- XmlSchemaAnyAttribute.cs
- UnmanagedMarshal.cs
- FormatConvertedBitmap.cs
- CommonBehaviorsSection.cs
- PageResolution.cs
- RestHandlerFactory.cs
- AnimationTimeline.cs
- GlyphingCache.cs
- XmlDataSourceView.cs
- ValidationEventArgs.cs
- DataBindingHandlerAttribute.cs
- DataGridItem.cs
- AlignmentXValidation.cs
- DataGridCellAutomationPeer.cs
- StylusTip.cs
- Cursors.cs
- Glyph.cs
- ComponentConverter.cs
- HMAC.cs
- CalendarDataBindingHandler.cs
- AssemblyBuilder.cs
- cache.cs
- DoubleCollectionConverter.cs
- Encoder.cs
- Pipe.cs
- ServiceOperationWrapper.cs
- FixedSOMTableRow.cs
- OracleCommand.cs
- DetailsViewRow.cs
- CompiledQueryCacheKey.cs
- pingexception.cs
- EventDescriptor.cs
- RuleSetCollection.cs
- DebugView.cs
- ClientData.cs
- ServerIdentity.cs
- CustomPopupPlacement.cs
- MimeMapping.cs
- XmlSchemaImport.cs
- CoreSwitches.cs
- DataServiceExpressionVisitor.cs
- UIElementHelper.cs
- MatrixKeyFrameCollection.cs
- TableParaClient.cs
- DockAndAnchorLayout.cs
- DriveNotFoundException.cs
- PagesChangedEventArgs.cs
- FocusChangedEventArgs.cs
- ButtonChrome.cs
- DocComment.cs
- TabletCollection.cs
- AccessViolationException.cs
- StateChangeEvent.cs
- SoapMessage.cs
- FigureHelper.cs
- _CookieModule.cs
- MemoryRecordBuffer.cs
- DbBuffer.cs
- DllNotFoundException.cs