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
- SingleTagSectionHandler.cs
- TagMapInfo.cs
- InplaceBitmapMetadataWriter.cs
- DBParameter.cs
- ControlParameter.cs
- CollectionViewGroupInternal.cs
- FilteredAttributeCollection.cs
- COM2Properties.cs
- PropertyDescriptor.cs
- CustomErrorsSectionWrapper.cs
- BaseProcessor.cs
- WebScriptEnablingBehavior.cs
- CategoryValueConverter.cs
- ReliableChannelBinder.cs
- MemoryFailPoint.cs
- QueryLifecycle.cs
- MergablePropertyAttribute.cs
- DecoderExceptionFallback.cs
- OptimalBreakSession.cs
- QilFunction.cs
- ImpersonateTokenRef.cs
- ExpandCollapseProviderWrapper.cs
- MarkupObject.cs
- ValidationErrorEventArgs.cs
- DataTableMapping.cs
- messageonlyhwndwrapper.cs
- ToolStripRenderer.cs
- EventHandlersStore.cs
- Missing.cs
- SplitterEvent.cs
- ObjectViewListener.cs
- TraceInternal.cs
- XPathNodeInfoAtom.cs
- MailWriter.cs
- RelationHandler.cs
- TextBoxAutoCompleteSourceConverter.cs
- CodeAccessSecurityEngine.cs
- ConversionValidationRule.cs
- TreeNodeMouseHoverEvent.cs
- Button.cs
- XmlBinaryReader.cs
- MethodBuilderInstantiation.cs
- HttpVersion.cs
- ServiceThrottlingBehavior.cs
- XPathDescendantIterator.cs
- ContextStack.cs
- Image.cs
- MbpInfo.cs
- typedescriptorpermission.cs
- GcSettings.cs
- XmlAnyAttributeAttribute.cs
- XmlSchemaAll.cs
- ItemAutomationPeer.cs
- ToolBarButton.cs
- StringFunctions.cs
- UpdateCompiler.cs
- SqlProcedureAttribute.cs
- InboundActivityHelper.cs
- DefaultBinder.cs
- GridViewColumnHeader.cs
- XmlHierarchicalDataSourceView.cs
- UdpUtility.cs
- EncoderExceptionFallback.cs
- WebConvert.cs
- ObjectSecurity.cs
- PenContext.cs
- AttributeCollection.cs
- SqlException.cs
- BreakSafeBase.cs
- BulletedList.cs
- FormViewPageEventArgs.cs
- HMACSHA384.cs
- WorkflowFileItem.cs
- CategoryAttribute.cs
- OdbcRowUpdatingEvent.cs
- MenuItem.cs
- DemultiplexingClientMessageFormatter.cs
- ServiceReference.cs
- TemplateXamlParser.cs
- ResourcesChangeInfo.cs
- HtmlElementEventArgs.cs
- LassoHelper.cs
- DiffuseMaterial.cs
- TCEAdapterGenerator.cs
- EditorPartCollection.cs
- LazyLoadBehavior.cs
- HttpListenerRequest.cs
- GridViewRow.cs
- DrawingGroupDrawingContext.cs
- AuthStoreRoleProvider.cs
- CardSpaceShim.cs
- Compress.cs
- ComponentRenameEvent.cs
- AnimatedTypeHelpers.cs
- SQLInt16Storage.cs
- SqlNamer.cs
- TypedColumnHandler.cs
- ClientScriptManagerWrapper.cs
- AnalyzedTree.cs
- GridViewSelectEventArgs.cs