Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InputLanguageCollection.cs
- AttributedMetaModel.cs
- SqlDataSourceParameterParser.cs
- ObjectAnimationUsingKeyFrames.cs
- MainMenu.cs
- ExpandableObjectConverter.cs
- Listen.cs
- _HeaderInfo.cs
- MatchAttribute.cs
- ProfileSettings.cs
- Variant.cs
- EqualityComparer.cs
- CookieParameter.cs
- _BufferOffsetSize.cs
- RoleGroupCollection.cs
- _NestedMultipleAsyncResult.cs
- ClassicBorderDecorator.cs
- CodeAssignStatement.cs
- wmiprovider.cs
- MapPathBasedVirtualPathProvider.cs
- TypeToken.cs
- XmlDocumentType.cs
- TableLayoutCellPaintEventArgs.cs
- CacheHelper.cs
- ScrollItemPattern.cs
- XmlSchemaObjectTable.cs
- TypeDelegator.cs
- XPathPatternParser.cs
- DrawingBrush.cs
- CheckBoxAutomationPeer.cs
- ByteStream.cs
- odbcmetadatafactory.cs
- CannotUnloadAppDomainException.cs
- ToolStripItemImageRenderEventArgs.cs
- DirectoryGroupQuery.cs
- Image.cs
- CompilerErrorCollection.cs
- XPathSelectionIterator.cs
- CodeLinePragma.cs
- SymbolPair.cs
- ScrollPatternIdentifiers.cs
- StreamingContext.cs
- PaginationProgressEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- QueryExpression.cs
- StaticFileHandler.cs
- ConfigUtil.cs
- BStrWrapper.cs
- DataServiceQueryException.cs
- XamlTypeMapper.cs
- SapiAttributeParser.cs
- DefaultValueAttribute.cs
- PkcsUtils.cs
- ControlSerializer.cs
- TypeUnloadedException.cs
- Int32RectConverter.cs
- SourceFilter.cs
- DictionaryEditChange.cs
- SystemInformation.cs
- TreeNodeBinding.cs
- XmlAtomicValue.cs
- Vertex.cs
- TypeUtils.cs
- SafeLibraryHandle.cs
- Renderer.cs
- EditorPartChrome.cs
- SendReply.cs
- SubstitutionList.cs
- ParagraphVisual.cs
- VectorCollectionConverter.cs
- DesignConnection.cs
- CryptographicAttribute.cs
- CodeConditionStatement.cs
- SafeNativeMethods.cs
- ProfileSettings.cs
- WriteLine.cs
- DefaultPropertyAttribute.cs
- RectangleHotSpot.cs
- DynamicILGenerator.cs
- CodeAccessSecurityEngine.cs
- DiscoveryServerProtocol.cs
- DoubleLinkListEnumerator.cs
- AspCompat.cs
- Point.cs
- SmtpException.cs
- BitmapImage.cs
- GridViewRowCollection.cs
- Application.cs
- GifBitmapDecoder.cs
- Classification.cs
- FontNamesConverter.cs
- Visual3D.cs
- DbProviderFactory.cs
- CodePageEncoding.cs
- SessionPageStatePersister.cs
- TreeViewItemAutomationPeer.cs
- UdpChannelListener.cs
- ExpressionNode.cs
- SafeEventHandle.cs
- ColorDialog.cs