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
- KeyValueSerializer.cs
- AdRotator.cs
- ObjectKeyFrameCollection.cs
- PersonalizationProviderHelper.cs
- TextRangeEditLists.cs
- EntityDataSourceReferenceGroup.cs
- Asn1IntegerConverter.cs
- ToggleProviderWrapper.cs
- StateDesigner.TransitionInfo.cs
- XamlFrame.cs
- ISAPIWorkerRequest.cs
- RelationshipEndCollection.cs
- InternalDispatchObject.cs
- NamespaceCollection.cs
- WebResourceAttribute.cs
- CssTextWriter.cs
- MouseEventArgs.cs
- FileUtil.cs
- ConsoleKeyInfo.cs
- serverconfig.cs
- DelayDesigner.cs
- SQLByteStorage.cs
- listitem.cs
- ButtonFlatAdapter.cs
- EventDrivenDesigner.cs
- Expander.cs
- WebBaseEventKeyComparer.cs
- CompiledELinqQueryState.cs
- BitmapEffectGeneralTransform.cs
- ClockController.cs
- X509CertificateTrustedIssuerElementCollection.cs
- VoiceSynthesis.cs
- ItemsControl.cs
- AuthStoreRoleProvider.cs
- HandlerFactoryCache.cs
- Underline.cs
- SingleTagSectionHandler.cs
- BStrWrapper.cs
- FixedSOMSemanticBox.cs
- ObjectPropertyMapping.cs
- NavigationWindowAutomationPeer.cs
- WindowsAltTab.cs
- BaseParaClient.cs
- DoubleAnimationUsingPath.cs
- RegexCapture.cs
- ExpressionConverter.cs
- ColorAnimation.cs
- IncrementalReadDecoders.cs
- xmlsaver.cs
- FaultPropagationRecord.cs
- HuffmanTree.cs
- LogSwitch.cs
- BitmapImage.cs
- SymmetricAlgorithm.cs
- ClientSettingsProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AppModelKnownContentFactory.cs
- ScriptReference.cs
- AsyncContentLoadedEventArgs.cs
- CodeCommentStatement.cs
- FullTextLine.cs
- ListControl.cs
- TraceContextRecord.cs
- DaylightTime.cs
- ContainerUIElement3D.cs
- IIS7UserPrincipal.cs
- ExtentJoinTreeNode.cs
- FlowDecisionLabelFeature.cs
- IconEditor.cs
- WebContext.cs
- ToolboxComponentsCreatedEventArgs.cs
- SourceLineInfo.cs
- ModelPerspective.cs
- GradientStopCollection.cs
- BitmapFrame.cs
- DtrList.cs
- ExtenderProviderService.cs
- UIPermission.cs
- SamlDelegatingWriter.cs
- ExpressionBindingCollection.cs
- CodeStatementCollection.cs
- XmlSerializerNamespaces.cs
- MemoryFailPoint.cs
- UInt32.cs
- StylusCollection.cs
- LateBoundBitmapDecoder.cs
- InternalBufferOverflowException.cs
- PopupEventArgs.cs
- StorageComplexPropertyMapping.cs
- HasCopySemanticsAttribute.cs
- XmlILStorageConverter.cs
- DesignerDataParameter.cs
- PartBasedPackageProperties.cs
- AQNBuilder.cs
- ByteKeyFrameCollection.cs
- SafeFileMappingHandle.cs
- TypeLoadException.cs
- AxHostDesigner.cs
- Color.cs
- ObjectViewEntityCollectionData.cs