Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IndentedWriter.cs
- ValidatorCollection.cs
- CodePageUtils.cs
- RectangleF.cs
- SchemaHelper.cs
- AdjustableArrowCap.cs
- CompModSwitches.cs
- OdbcTransaction.cs
- FileDialogCustomPlace.cs
- CodeAccessSecurityEngine.cs
- FixedSchema.cs
- EncoderParameters.cs
- ConfigurationElementCollection.cs
- ParameterRetriever.cs
- DataObject.cs
- DataBoundLiteralControl.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ZipPackage.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- LateBoundBitmapDecoder.cs
- SharedConnectionInfo.cs
- ApplicationManager.cs
- DrawingState.cs
- XmlObjectSerializerReadContext.cs
- ContentValidator.cs
- CodeSubDirectory.cs
- MsmqIntegrationOutputChannel.cs
- HttpHandlerAction.cs
- CompressionTracing.cs
- StrokeDescriptor.cs
- ConfigurationStrings.cs
- AppSettingsSection.cs
- safelink.cs
- NTAccount.cs
- TextPenaltyModule.cs
- URLString.cs
- IPAddressCollection.cs
- FlowPanelDesigner.cs
- InvalidAsynchronousStateException.cs
- OdbcConnection.cs
- diagnosticsswitches.cs
- IisTraceListener.cs
- ScrollPatternIdentifiers.cs
- EntityClientCacheKey.cs
- TakeQueryOptionExpression.cs
- FormViewPageEventArgs.cs
- TextTreeTextBlock.cs
- RoutedEventHandlerInfo.cs
- DrawingGroup.cs
- SharedUtils.cs
- ConfigurationCollectionAttribute.cs
- ClientCredentialsSecurityTokenManager.cs
- XmlSchemaSimpleContentExtension.cs
- SerialPinChanges.cs
- TemplateBindingExpression.cs
- SourceFileInfo.cs
- FrameworkContentElement.cs
- Timer.cs
- LinqDataSourceSelectEventArgs.cs
- DocumentViewerHelper.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- PolyLineSegment.cs
- Base64Decoder.cs
- documentsequencetextcontainer.cs
- DrawListViewItemEventArgs.cs
- TreeViewImageIndexConverter.cs
- EntityDescriptor.cs
- ObjectDataSourceView.cs
- SequentialOutput.cs
- MessageSecurityOverHttp.cs
- DataGridCommandEventArgs.cs
- ActivityInstanceMap.cs
- XmlLanguageConverter.cs
- ProfileServiceManager.cs
- BaseContextMenu.cs
- Emitter.cs
- WaveHeader.cs
- OracleException.cs
- EventProviderWriter.cs
- TableParagraph.cs
- ServicePointManager.cs
- PropagatorResult.cs
- ValidationPropertyAttribute.cs
- RealizationDrawingContextWalker.cs
- HtmlControl.cs
- DBSchemaTable.cs
- DebugInfo.cs
- OuterGlowBitmapEffect.cs
- ButtonFlatAdapter.cs
- CertificateElement.cs
- CatalogPart.cs
- CookieHandler.cs
- NameValueCollection.cs
- StylusShape.cs
- DataGridBoolColumn.cs
- ImageListStreamer.cs
- LinkLabel.cs
- DataGridViewToolTip.cs
- CompositeCollectionView.cs