Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / CalendarDataBindingHandler.cs / 1305376 / CalendarDataBindingHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Web.UI; using System.Web.UI.Design; using System.Web.UI.MobileControls; [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDataBindingHandler : DataBindingHandler { 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. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Web.UI; using System.Web.UI.Design; using System.Web.UI.MobileControls; [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDataBindingHandler : DataBindingHandler { 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbCommandTree.cs
- X509CertificateChain.cs
- ControlIdConverter.cs
- GlyphsSerializer.cs
- InternalConfigRoot.cs
- HttpModuleAction.cs
- OracleRowUpdatingEventArgs.cs
- ResolveResponse.cs
- XmlSchemaFacet.cs
- EnumBuilder.cs
- PreservationFileReader.cs
- ISSmlParser.cs
- StylusPointPropertyInfo.cs
- TlsSspiNegotiation.cs
- HtmlShim.cs
- RadioButtonDesigner.cs
- IssuanceLicense.cs
- SafeBitVector32.cs
- RtfFormatStack.cs
- SiteMapPath.cs
- TypeElement.cs
- SecurityRuntime.cs
- XmlSchemaCollection.cs
- ReliableMessagingVersionConverter.cs
- SchemaSetCompiler.cs
- EpmSourcePathSegment.cs
- wgx_render.cs
- NodeFunctions.cs
- OneOfElement.cs
- HtmlFormWrapper.cs
- remotingproxy.cs
- SqlDataSourceCommandParser.cs
- DomainConstraint.cs
- DbMetaDataFactory.cs
- TypographyProperties.cs
- QueryAccessibilityHelpEvent.cs
- XhtmlCssHandler.cs
- Bold.cs
- AttachedAnnotationChangedEventArgs.cs
- PeerOutputChannel.cs
- NativeMethods.cs
- MimeMapping.cs
- Point.cs
- Light.cs
- MethodCallConverter.cs
- ValueProviderWrapper.cs
- Model3D.cs
- DirectionalLight.cs
- SqlBuilder.cs
- CacheForPrimitiveTypes.cs
- ReadOnlyCollectionBase.cs
- GeneralTransform3D.cs
- ManagedFilter.cs
- RelationshipEndMember.cs
- InkCanvas.cs
- CriticalHandle.cs
- CustomAttribute.cs
- COM2ExtendedUITypeEditor.cs
- WebBrowser.cs
- SiteMembershipCondition.cs
- WorkflowRuntimeServiceElementCollection.cs
- ResourceAssociationType.cs
- _RequestCacheProtocol.cs
- WebDisplayNameAttribute.cs
- IItemContainerGenerator.cs
- Wildcard.cs
- WebPartTransformer.cs
- TextCompositionManager.cs
- Win32PrintDialog.cs
- Region.cs
- SchemaCollectionPreprocessor.cs
- DataGridColumnStyleMappingNameEditor.cs
- PointHitTestResult.cs
- TranslateTransform.cs
- WebPartEditorCancelVerb.cs
- BatchWriter.cs
- JsonFormatWriterGenerator.cs
- ErrorInfoXmlDocument.cs
- XPathSingletonIterator.cs
- UnsafeNativeMethods.cs
- WebBaseEventKeyComparer.cs
- MenuTracker.cs
- PropertyOrder.cs
- InternalControlCollection.cs
- RawStylusActions.cs
- StylusPointCollection.cs
- FormatControl.cs
- BinaryConverter.cs
- DesignerSerializationManager.cs
- _UriTypeConverter.cs
- PrimarySelectionAdorner.cs
- WebAdminConfigurationHelper.cs
- UserPreferenceChangingEventArgs.cs
- AssemblyBuilder.cs
- InternalException.cs
- ResourcesBuildProvider.cs
- StorageConditionPropertyMapping.cs
- EntityDataReader.cs
- Stream.cs
- WindowsContainer.cs