Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / CalendarDataBindingHandler.cs / 1 / CalendarDataBindingHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.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 CalendarDataBindingHandler : DataBindingHandler { ///[To be supplied.] ////// /// public override void DataBindControl(IDesignerHost designerHost, Control control) { Debug.Assert(control is Calendar, "Expected a Calendar"); Calendar calendar = (Calendar)control; DataBinding dateBinding = ((IDataBindingsAccessor)calendar).DataBindings["SelectedDate"]; if (dateBinding != null) { calendar.SelectedDate = DateTime.Today; } } } } // 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
- TableLayoutColumnStyleCollection.cs
- ScriptBehaviorDescriptor.cs
- RowVisual.cs
- XmlWrappingReader.cs
- WorkflowViewElement.cs
- DataGridItemEventArgs.cs
- Oid.cs
- SecurityPermission.cs
- WebException.cs
- MailWebEventProvider.cs
- XmlWrappingReader.cs
- ObjectStateManagerMetadata.cs
- MessageQueueInstaller.cs
- CollectionChangeEventArgs.cs
- followingquery.cs
- ScriptingAuthenticationServiceSection.cs
- QueryUtil.cs
- FamilyTypefaceCollection.cs
- XmlWhitespace.cs
- StylusEventArgs.cs
- SharedPerformanceCounter.cs
- DataObject.cs
- TextAdaptor.cs
- SinglePageViewer.cs
- HostedNamedPipeTransportManager.cs
- ByteStack.cs
- ComEventsHelper.cs
- CustomCategoryAttribute.cs
- Base64Encoder.cs
- LightweightEntityWrapper.cs
- StateWorkerRequest.cs
- QuestionEventArgs.cs
- RedirectionProxy.cs
- TryExpression.cs
- XmlWellformedWriter.cs
- COM2EnumConverter.cs
- QuadraticBezierSegment.cs
- DataGridViewCellLinkedList.cs
- StaticSiteMapProvider.cs
- OdbcEnvironment.cs
- SemanticTag.cs
- MsmqInputChannel.cs
- RuleAction.cs
- RemotingSurrogateSelector.cs
- CodeAttachEventStatement.cs
- FlowLayoutSettings.cs
- DefaultHttpHandler.cs
- ObjectStateEntry.cs
- JournalNavigationScope.cs
- RuleEngine.cs
- Input.cs
- MenuStrip.cs
- WindowsGraphicsCacheManager.cs
- ExpressionConverter.cs
- Aggregates.cs
- CapabilitiesUse.cs
- DateBoldEvent.cs
- QuaternionIndependentAnimationStorage.cs
- ScrollItemPatternIdentifiers.cs
- TextClipboardData.cs
- UpdateTranslator.cs
- coordinatorfactory.cs
- DataSourceConverter.cs
- ProfileGroupSettingsCollection.cs
- FontSource.cs
- Trace.cs
- VirtualizingPanel.cs
- AttributeXamlType.cs
- NativeMethods.cs
- DefaultParameterValueAttribute.cs
- SourceExpressionException.cs
- ClientSettingsSection.cs
- RegexMatchCollection.cs
- Preprocessor.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- EntityDataSourceChangingEventArgs.cs
- XmlCompatibilityReader.cs
- SqlCacheDependencyDatabase.cs
- SemaphoreSecurity.cs
- NullRuntimeConfig.cs
- CssStyleCollection.cs
- Internal.cs
- securitycriticaldataformultiplegetandset.cs
- AlignmentYValidation.cs
- FontDriver.cs
- PropertyKey.cs
- DbLambda.cs
- RenamedEventArgs.cs
- DurableRuntimeValidator.cs
- CssStyleCollection.cs
- WindowPattern.cs
- UnauthorizedWebPart.cs
- TitleStyle.cs
- Helpers.cs
- ImageResources.Designer.cs
- StyleCollection.cs
- AccessibleObject.cs
- NameValueSectionHandler.cs
- RadioButtonStandardAdapter.cs
- NetPeerTcpBindingCollectionElement.cs