Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegularExpressionValidator.cs
- ZoneMembershipCondition.cs
- StylusPointPropertyInfoDefaults.cs
- NumericUpDownAccelerationCollection.cs
- mediaeventshelper.cs
- ColorKeyFrameCollection.cs
- CssStyleCollection.cs
- MessageHeader.cs
- FormViewInsertedEventArgs.cs
- DoubleUtil.cs
- WindowsSolidBrush.cs
- DataControlExtensions.cs
- DirectoryRedirect.cs
- EnumBuilder.cs
- WriteTimeStream.cs
- XComponentModel.cs
- WindowsPrincipal.cs
- FigureHelper.cs
- ReachPageContentSerializer.cs
- BooleanAnimationUsingKeyFrames.cs
- GeneralTransformGroup.cs
- ReadOnlyDataSource.cs
- SecurityCriticalDataForSet.cs
- Visual.cs
- ComNativeDescriptor.cs
- StronglyTypedResourceBuilder.cs
- ServiceXNameTypeConverter.cs
- InputGestureCollection.cs
- XhtmlBasicListAdapter.cs
- MetadataElement.cs
- HitTestResult.cs
- MediaContext.cs
- SafeNativeMethodsOther.cs
- DebugView.cs
- HttpCacheVaryByContentEncodings.cs
- PathFigureCollectionValueSerializer.cs
- SpecularMaterial.cs
- SqlUtil.cs
- SingleObjectCollection.cs
- EdmProperty.cs
- ImmutableObjectAttribute.cs
- KnownBoxes.cs
- MultiAsyncResult.cs
- Help.cs
- FixedFlowMap.cs
- NumberFormatter.cs
- XmlSortKey.cs
- BrushValueSerializer.cs
- CollectionViewGroupRoot.cs
- MultiSelector.cs
- ExpanderAutomationPeer.cs
- ButtonChrome.cs
- DataGridTextBox.cs
- DotExpr.cs
- XmlSchemas.cs
- TextViewBase.cs
- Column.cs
- SmtpAuthenticationManager.cs
- _OSSOCK.cs
- ReplacementText.cs
- SQLString.cs
- Point3D.cs
- Drawing.cs
- PermissionSetTriple.cs
- PackageRelationship.cs
- RelatedEnd.cs
- BaseCodePageEncoding.cs
- WindowPattern.cs
- DesignerToolStripControlHost.cs
- VectorAnimation.cs
- IListConverters.cs
- VScrollProperties.cs
- DataReceivedEventArgs.cs
- BackStopAuthenticationModule.cs
- InternalConfigHost.cs
- StreamInfo.cs
- EventMappingSettings.cs
- ToolboxItemCollection.cs
- SafeNativeMethodsOther.cs
- Encoder.cs
- KeyConverter.cs
- XmlSerializerNamespaces.cs
- List.cs
- TypographyProperties.cs
- XmlAtomErrorReader.cs
- SoapElementAttribute.cs
- WebProxyScriptElement.cs
- InheritanceRules.cs
- WindowsGraphics.cs
- FilterQuery.cs
- SettingsBase.cs
- InsufficientMemoryException.cs
- ServicePointManager.cs
- DeflateStreamAsyncResult.cs
- PropertyGroupDescription.cs
- SqlBooleanizer.cs
- HttpContext.cs
- SessionState.cs
- FactoryMaker.cs
- InheritedPropertyChangedEventArgs.cs