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
- TabControlEvent.cs
- RowsCopiedEventArgs.cs
- ToolbarAUtomationPeer.cs
- TypeTypeConverter.cs
- AutomationElementCollection.cs
- HashSetDebugView.cs
- GridItemCollection.cs
- XhtmlCssHandler.cs
- SqlSupersetValidator.cs
- EntityConnectionStringBuilder.cs
- XmlSignatureManifest.cs
- SMSvcHost.cs
- Line.cs
- CodeAccessPermission.cs
- StorageFunctionMapping.cs
- IgnoreFileBuildProvider.cs
- ColorContextHelper.cs
- documentsequencetextview.cs
- Metafile.cs
- SyndicationSerializer.cs
- DataServiceConfiguration.cs
- GlyphingCache.cs
- Pkcs7Recipient.cs
- LassoSelectionBehavior.cs
- figurelength.cs
- BaseCodeDomTreeGenerator.cs
- DocumentViewerHelper.cs
- CacheAxisQuery.cs
- RegexRunnerFactory.cs
- ListInitExpression.cs
- FontFaceLayoutInfo.cs
- Vars.cs
- infer.cs
- SqlConnectionHelper.cs
- UIntPtr.cs
- ChannelRequirements.cs
- ScriptManager.cs
- DispatchWrapper.cs
- MessagingDescriptionAttribute.cs
- LinkTarget.cs
- ProviderIncompatibleException.cs
- CompilationSection.cs
- NativeMethodsOther.cs
- ManagementDateTime.cs
- RequestCacheValidator.cs
- ValidationHelpers.cs
- StrokeIntersection.cs
- CrossContextChannel.cs
- AuthorizationRuleCollection.cs
- ReservationNotFoundException.cs
- SingleTagSectionHandler.cs
- ViewGenerator.cs
- CollectionConverter.cs
- __Filters.cs
- BoundsDrawingContextWalker.cs
- FontNameEditor.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridCellInfo.cs
- TypeToken.cs
- BufferedGraphics.cs
- SqlDataReader.cs
- FormViewDeletedEventArgs.cs
- SqlCacheDependencySection.cs
- SelectionPattern.cs
- PopOutPanel.cs
- SessionStateUtil.cs
- FrameworkName.cs
- CharacterMetrics.cs
- RbTree.cs
- UMPAttributes.cs
- NamespaceExpr.cs
- DataSourceDesigner.cs
- ThicknessAnimationUsingKeyFrames.cs
- CodeComment.cs
- Vector3D.cs
- MessageSecurityOverHttp.cs
- iisPickupDirectory.cs
- AbsoluteQuery.cs
- FixedSOMTable.cs
- WebPartEventArgs.cs
- InternalControlCollection.cs
- util.cs
- SoapIncludeAttribute.cs
- HelpExampleGenerator.cs
- UIElement.cs
- CommonBehaviorsSection.cs
- JapaneseCalendar.cs
- DataObject.cs
- Pen.cs
- DocumentEventArgs.cs
- Composition.cs
- NodeFunctions.cs
- DataControlCommands.cs
- NativeWindow.cs
- PreloadedPackages.cs
- XslCompiledTransform.cs
- WebPartConnectionsDisconnectVerb.cs
- BitmapEffectInput.cs
- EnumType.cs
- ExpressionVisitorHelpers.cs