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
- DataGridParentRows.cs
- DataViewSettingCollection.cs
- NullRuntimeConfig.cs
- SharedConnectionWorkflowTransactionService.cs
- ChannelPool.cs
- ListViewCommandEventArgs.cs
- JavaScriptObjectDeserializer.cs
- FileBasedResourceGroveler.cs
- HttpServerProtocol.cs
- TextShapeableCharacters.cs
- FieldNameLookup.cs
- CompilerTypeWithParams.cs
- SHA256.cs
- COSERVERINFO.cs
- MultipartContentParser.cs
- EventManager.cs
- SetMemberBinder.cs
- ImageListStreamer.cs
- IgnoreDeviceFilterElementCollection.cs
- SqlBooleanMismatchVisitor.cs
- EntityRecordInfo.cs
- SQLMoney.cs
- TableProviderWrapper.cs
- messageonlyhwndwrapper.cs
- GridViewRowPresenterBase.cs
- DataGridDesigner.cs
- CopyAttributesAction.cs
- Win32PrintDialog.cs
- OrElse.cs
- XPathDocument.cs
- InnerItemCollectionView.cs
- KeyValueInternalCollection.cs
- Thickness.cs
- ProfileSettings.cs
- XmlReader.cs
- TemplateBindingExpression.cs
- PasswordDeriveBytes.cs
- NativeMethodsCLR.cs
- XmlNodeComparer.cs
- PerspectiveCamera.cs
- x509utils.cs
- CustomError.cs
- WebPartCatalogAddVerb.cs
- TextParagraphView.cs
- BaseValidatorDesigner.cs
- SchemaSetCompiler.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RowToFieldTransformer.cs
- PatternMatcher.cs
- EntityDesignerDataSourceView.cs
- InputScope.cs
- ZipIOExtraFieldElement.cs
- DragStartedEventArgs.cs
- AppDomainShutdownMonitor.cs
- ExpressionContext.cs
- StrokeNodeData.cs
- HttpProfileGroupBase.cs
- CodeEntryPointMethod.cs
- AlignmentYValidation.cs
- DataGridViewDataErrorEventArgs.cs
- TableProviderWrapper.cs
- SecurityTokenResolver.cs
- IRCollection.cs
- XmlQueryRuntime.cs
- BrowserDefinition.cs
- XamlToRtfWriter.cs
- ListViewCancelEventArgs.cs
- AspNetHostingPermission.cs
- EntityDescriptor.cs
- WebFormDesignerActionService.cs
- XamlSerializerUtil.cs
- HttpClientCertificate.cs
- XmlILOptimizerVisitor.cs
- XsltException.cs
- DesignerAttribute.cs
- OrderPreservingSpoolingTask.cs
- Effect.cs
- SoapIncludeAttribute.cs
- HotSpotCollectionEditor.cs
- SqlLiftIndependentRowExpressions.cs
- SessionStateItemCollection.cs
- AuthorizationSection.cs
- ReadWriteSpinLock.cs
- SerializationAttributes.cs
- Context.cs
- ReferentialConstraint.cs
- WebHostScriptMappingsInstallComponent.cs
- SapiAttributeParser.cs
- AttributeProviderAttribute.cs
- ProfileSettings.cs
- TransformerConfigurationWizardBase.cs
- DataControlButton.cs
- DataProtection.cs
- VBCodeProvider.cs
- CreatingCookieEventArgs.cs
- FontFamilyIdentifier.cs
- ActivationServices.cs
- RestClientProxyHandler.cs
- Compiler.cs
- AttachmentCollection.cs