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
- PrimitiveSchema.cs
- SubpageParaClient.cs
- XPathDocumentIterator.cs
- DefaultPropertyAttribute.cs
- IPGlobalProperties.cs
- SoapAttributeAttribute.cs
- StyleCollectionEditor.cs
- StructureChangedEventArgs.cs
- CrossContextChannel.cs
- ContainerCodeDomSerializer.cs
- ToolZone.cs
- RequestNavigateEventArgs.cs
- DrawingCollection.cs
- PersistNameAttribute.cs
- StorageEndPropertyMapping.cs
- FileEnumerator.cs
- SafeEventLogWriteHandle.cs
- DataGridViewButtonColumn.cs
- GenerateTemporaryTargetAssembly.cs
- Logging.cs
- JsonServiceDocumentSerializer.cs
- GeometryHitTestResult.cs
- ToolStripSplitStackLayout.cs
- PersistChildrenAttribute.cs
- smtppermission.cs
- XmlValidatingReaderImpl.cs
- CatalogPart.cs
- StrongBox.cs
- HtmlContainerControl.cs
- ListViewItemMouseHoverEvent.cs
- NativeRightsManagementAPIsStructures.cs
- SiblingIterators.cs
- SiteOfOriginContainer.cs
- LineVisual.cs
- HebrewNumber.cs
- ServiceTimeoutsBehavior.cs
- TabControl.cs
- ControlParameter.cs
- FontCollection.cs
- CryptoKeySecurity.cs
- MethodRental.cs
- InputLangChangeRequestEvent.cs
- DataGridViewHeaderCell.cs
- SafeNativeMemoryHandle.cs
- RC2.cs
- DescendentsWalker.cs
- AdCreatedEventArgs.cs
- WsdlBuildProvider.cs
- GridViewAutomationPeer.cs
- UnmanagedMemoryStream.cs
- PathParser.cs
- RTLAwareMessageBox.cs
- StaticSiteMapProvider.cs
- DataGridParentRows.cs
- Rijndael.cs
- Int16.cs
- ListItemsPage.cs
- MemberHolder.cs
- TypeGeneratedEventArgs.cs
- StrokeNodeEnumerator.cs
- UnhandledExceptionEventArgs.cs
- oledbmetadatacollectionnames.cs
- ActiveXContainer.cs
- DataMisalignedException.cs
- URLString.cs
- SqlUnionizer.cs
- SmiXetterAccessMap.cs
- BCLDebug.cs
- SByteStorage.cs
- CategoryAttribute.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- CompiledXpathExpr.cs
- TextTreeTextBlock.cs
- ObjectKeyFrameCollection.cs
- DockingAttribute.cs
- Parser.cs
- SEHException.cs
- Matrix3D.cs
- InputLanguageProfileNotifySink.cs
- SoapProtocolImporter.cs
- JsonDeserializer.cs
- SecurityPolicyVersion.cs
- SqlConnectionStringBuilder.cs
- OptionalMessageQuery.cs
- WorkflowHostingEndpoint.cs
- AtomicFile.cs
- AnonymousIdentificationModule.cs
- UserPersonalizationStateInfo.cs
- OptimizerPatterns.cs
- SmtpMail.cs
- ModelTreeEnumerator.cs
- InputBuffer.cs
- CatalogPart.cs
- Conditional.cs
- Storyboard.cs
- MouseWheelEventArgs.cs
- ToolboxItemFilterAttribute.cs
- SplitContainerDesigner.cs
- TextPointer.cs
- VoiceObjectToken.cs