Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / DataControlButton.cs / 1 / DataControlButton.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Drawing; using System.Web.Util; ////// Derived version of Button used within a DataControl. /// [SupportsEventValidation] internal sealed class DataControlButton : Button { IPostBackContainer _container; internal DataControlButton(IPostBackContainer container) { _container = container; } public override bool CausesValidation { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.CannotSetValidationOnDataControlButtons)); } } public override bool UseSubmitBehavior { get { return false; } set { throw new NotSupportedException(); } } protected sealed override PostBackOptions GetPostBackOptions() { PostBackOptions options; if (_container != null) { options = _container.GetPostBackOptions(this); if (Page != null) { options.ClientSubmit = true; } } else { options = base.GetPostBackOptions(); } return options; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Drawing; using System.Web.Util; ////// Derived version of Button used within a DataControl. /// [SupportsEventValidation] internal sealed class DataControlButton : Button { IPostBackContainer _container; internal DataControlButton(IPostBackContainer container) { _container = container; } public override bool CausesValidation { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.CannotSetValidationOnDataControlButtons)); } } public override bool UseSubmitBehavior { get { return false; } set { throw new NotSupportedException(); } } protected sealed override PostBackOptions GetPostBackOptions() { PostBackOptions options; if (_container != null) { options = _container.GetPostBackOptions(this); if (Page != null) { options.ClientSubmit = true; } } else { options = base.GetPostBackOptions(); } return options; } } } // 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
- CqlParserHelpers.cs
- SqlCommandBuilder.cs
- AdPostCacheSubstitution.cs
- TypeProvider.cs
- TextTreeRootTextBlock.cs
- BufferedGraphics.cs
- UserCancellationException.cs
- Int32CollectionConverter.cs
- FixUpCollection.cs
- SignatureResourcePool.cs
- UnauthorizedAccessException.cs
- _TransmitFileOverlappedAsyncResult.cs
- ByteAnimationBase.cs
- Lease.cs
- NullableDecimalSumAggregationOperator.cs
- AspNetHostingPermission.cs
- CTreeGenerator.cs
- FieldMetadata.cs
- AnonymousIdentificationModule.cs
- ImageButton.cs
- BufferModeSettings.cs
- XmlCustomFormatter.cs
- AsyncCompletedEventArgs.cs
- CroppedBitmap.cs
- HelloOperation11AsyncResult.cs
- ConfigurationManagerHelperFactory.cs
- XmlSchemaGroupRef.cs
- ClientScriptManagerWrapper.cs
- httpstaticobjectscollection.cs
- AnnotationHighlightLayer.cs
- GiveFeedbackEvent.cs
- ThumbAutomationPeer.cs
- ServiceNameElementCollection.cs
- WizardStepBase.cs
- TabletDevice.cs
- BufferCache.cs
- DefaultEventAttribute.cs
- WindowsListViewGroup.cs
- EmptyArray.cs
- SingleObjectCollection.cs
- PersonalizableTypeEntry.cs
- TrustManager.cs
- PagerSettings.cs
- LifetimeServices.cs
- SqlDependencyUtils.cs
- HighlightVisual.cs
- Int64Converter.cs
- StringCollection.cs
- ArrayItemValue.cs
- RootProfilePropertySettingsCollection.cs
- ItemCollection.cs
- CodeTypeParameter.cs
- DesignerCapabilities.cs
- ServiceInstanceProvider.cs
- StickyNoteHelper.cs
- FlowDocumentScrollViewer.cs
- ConfigurationSectionGroupCollection.cs
- TextElementEnumerator.cs
- ComPlusDiagnosticTraceRecords.cs
- SmtpAuthenticationManager.cs
- GridViewSortEventArgs.cs
- StatusBarAutomationPeer.cs
- WorkflowDurableInstance.cs
- WizardSideBarListControlItem.cs
- QilTargetType.cs
- TimeSpanOrInfiniteConverter.cs
- HitTestFilterBehavior.cs
- PassportAuthenticationEventArgs.cs
- IdentityValidationException.cs
- QilTernary.cs
- GridViewSortEventArgs.cs
- SendKeys.cs
- TypeAccessException.cs
- FileStream.cs
- DeclarativeCatalogPart.cs
- XmlSchemaSequence.cs
- HttpHandlerActionCollection.cs
- StringHandle.cs
- NoPersistHandle.cs
- WinFormsComponentEditor.cs
- ModelVisual3D.cs
- SerializationException.cs
- BinHexDecoder.cs
- WebMessageFormatHelper.cs
- XmlReflectionImporter.cs
- IndentedWriter.cs
- XmlNodeChangedEventArgs.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ItemType.cs
- mediapermission.cs
- Identifier.cs
- LicenseProviderAttribute.cs
- TextParagraph.cs
- ToolStripLocationCancelEventArgs.cs
- LinkGrep.cs
- MappingModelBuildProvider.cs
- DependencyPropertyConverter.cs
- X509ChainPolicy.cs
- dbenumerator.cs
- Bind.cs