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
- ClientConfigurationHost.cs
- TimerElapsedEvenArgs.cs
- TokenizerHelper.cs
- SwitchElementsCollection.cs
- TimeManager.cs
- WorkflowServiceBuildProvider.cs
- TableLayoutSettingsTypeConverter.cs
- AuthenticationConfig.cs
- CodeCommentStatement.cs
- DataGridViewRowCancelEventArgs.cs
- SelectionItemProviderWrapper.cs
- ipaddressinformationcollection.cs
- DaylightTime.cs
- PtsHelper.cs
- CreateUserErrorEventArgs.cs
- ExpressionBuilderContext.cs
- ErrorWrapper.cs
- SimpleHandlerFactory.cs
- GroupBoxAutomationPeer.cs
- UserThread.cs
- TreeChangeInfo.cs
- Accessible.cs
- GregorianCalendar.cs
- BrowserTree.cs
- SafeReversePInvokeHandle.cs
- Html32TextWriter.cs
- ResetableIterator.cs
- FormViewDeletedEventArgs.cs
- RTTrackingProfile.cs
- MatrixTransform3D.cs
- ListBox.cs
- BitmapEffectDrawingContent.cs
- ObjectRef.cs
- RemoteCryptoRsaServiceProvider.cs
- ToolTipService.cs
- ObjectStateFormatter.cs
- InputScope.cs
- StyleCollection.cs
- SoapProtocolImporter.cs
- CursorConverter.cs
- ContentPlaceHolder.cs
- CodeSnippetTypeMember.cs
- XmlSchemaObjectTable.cs
- ConfigXmlSignificantWhitespace.cs
- WmlImageAdapter.cs
- ClassValidator.cs
- Codec.cs
- Binding.cs
- NameValueSectionHandler.cs
- Convert.cs
- QilVisitor.cs
- EntityUtil.cs
- NetworkInterface.cs
- XPathBuilder.cs
- FrameworkElement.cs
- HandlerBase.cs
- XPathMultyIterator.cs
- ListDictionaryInternal.cs
- SmtpDigestAuthenticationModule.cs
- SecurityTokenValidationException.cs
- FrameDimension.cs
- XmlCodeExporter.cs
- TypeDelegator.cs
- WindowsRegion.cs
- TextParentUndoUnit.cs
- MethodCallExpression.cs
- DataViewSetting.cs
- LinkButton.cs
- LinearKeyFrames.cs
- ColumnResult.cs
- KeyTime.cs
- CreateUserWizard.cs
- HtmlEmptyTagControlBuilder.cs
- NestPullup.cs
- DataGridViewTextBoxEditingControl.cs
- CookieParameter.cs
- infer.cs
- StateValidator.cs
- ExeContext.cs
- ProxyGenerationError.cs
- NameValueFileSectionHandler.cs
- TypeViewSchema.cs
- BuildProvider.cs
- ActivityStateRecord.cs
- InvalidCastException.cs
- ListDataHelper.cs
- DelayedRegex.cs
- OptionUsage.cs
- ResponseBodyWriter.cs
- CodeTypeReferenceExpression.cs
- CompositeControl.cs
- TypedRowGenerator.cs
- HyperLinkStyle.cs
- ProtectedConfiguration.cs
- ContextMarshalException.cs
- XmlAggregates.cs
- SqlParameterizer.cs
- MonikerProxyAttribute.cs
- SupportingTokenSpecification.cs
- DecimalConstantAttribute.cs