Code:
/ DotNET / DotNET / 8.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
- ISAPIRuntime.cs
- AutomationEventArgs.cs
- MachineKeyValidationConverter.cs
- ThousandthOfEmRealPoints.cs
- OleDbInfoMessageEvent.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- PromptEventArgs.cs
- UserControlDocumentDesigner.cs
- invalidudtexception.cs
- WindowsEditBox.cs
- DataGridAutoFormatDialog.cs
- ImageSourceValueSerializer.cs
- XmlSchemaGroupRef.cs
- DataServiceRequestException.cs
- BitmapImage.cs
- SurrogateEncoder.cs
- CodeDelegateCreateExpression.cs
- RichTextBoxConstants.cs
- SqlLiftWhereClauses.cs
- graph.cs
- ExecutionContext.cs
- DataControlButton.cs
- ReferentialConstraint.cs
- DataShape.cs
- TranslateTransform3D.cs
- BamlRecordHelper.cs
- MenuItemBindingCollection.cs
- ChtmlMobileTextWriter.cs
- SingleResultAttribute.cs
- SelectionItemPattern.cs
- OdbcPermission.cs
- DrawingState.cs
- Trace.cs
- XhtmlBasicCalendarAdapter.cs
- GetWorkflowTree.cs
- EventWaitHandleSecurity.cs
- BamlTreeUpdater.cs
- FormViewRow.cs
- SpeakCompletedEventArgs.cs
- AnyAllSearchOperator.cs
- CompareValidator.cs
- BaseCollection.cs
- MostlySingletonList.cs
- NotifyIcon.cs
- XamlGridLengthSerializer.cs
- MatchAttribute.cs
- XmlSchemaGroup.cs
- TraceListeners.cs
- ColorEditor.cs
- CheckBoxFlatAdapter.cs
- CopyCodeAction.cs
- IsolatedStorageException.cs
- GenericUriParser.cs
- SqlServer2KCompatibilityAnnotation.cs
- XmlDocumentSerializer.cs
- FormViewDeletedEventArgs.cs
- TriggerCollection.cs
- OutputCacheProfileCollection.cs
- ConfigurationStrings.cs
- TextBoxView.cs
- BindableTemplateBuilder.cs
- ClientFactory.cs
- PointCollectionConverter.cs
- SecurityContextTokenCache.cs
- DesignerObject.cs
- FontNamesConverter.cs
- XmlDocumentFragment.cs
- DataBindingHandlerAttribute.cs
- ArrayConverter.cs
- GregorianCalendar.cs
- XPathNodeList.cs
- BaseDataBoundControlDesigner.cs
- BlockCollection.cs
- BitVector32.cs
- IfJoinedCondition.cs
- COM2EnumConverter.cs
- FileLevelControlBuilderAttribute.cs
- ObjectQueryExecutionPlan.cs
- DbExpressionBuilder.cs
- ICspAsymmetricAlgorithm.cs
- SystemIPGlobalProperties.cs
- Mapping.cs
- EntityUtil.cs
- PageRanges.cs
- CodeObjectCreateExpression.cs
- SqlNotificationEventArgs.cs
- OleAutBinder.cs
- NumberAction.cs
- NameObjectCollectionBase.cs
- ConnectionPointConverter.cs
- DeleteIndexBinder.cs
- DoubleUtil.cs
- ProgressBarAutomationPeer.cs
- CompiledQueryCacheKey.cs
- PartManifestEntry.cs
- GlobalEventManager.cs
- ScriptResourceHandler.cs
- ToolStripSeparatorRenderEventArgs.cs
- InProcStateClientManager.cs
- CategoryAttribute.cs