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
- SqlHelper.cs
- ViewUtilities.cs
- MobilePage.cs
- ObjectReferenceStack.cs
- DeclarativeCatalogPartDesigner.cs
- FormsIdentity.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- COM2FontConverter.cs
- TcpChannelListener.cs
- ErrorProvider.cs
- ResXFileRef.cs
- ParameterRetriever.cs
- StreamUpdate.cs
- DataControlLinkButton.cs
- TableHeaderCell.cs
- PropertyEmitter.cs
- LinqDataSourceContextEventArgs.cs
- XPathEmptyIterator.cs
- SettingsAttributes.cs
- ProfileModule.cs
- StyleModeStack.cs
- SmtpLoginAuthenticationModule.cs
- DbConnectionStringCommon.cs
- formatter.cs
- SettingsPropertyValue.cs
- PrimitiveXmlSerializers.cs
- SortedDictionary.cs
- SafeWaitHandle.cs
- TagNameToTypeMapper.cs
- FontStyle.cs
- OpacityConverter.cs
- SurrogateDataContract.cs
- MobileContainerDesigner.cs
- WebRequestModuleElementCollection.cs
- Overlapped.cs
- HwndTarget.cs
- StateInitialization.cs
- OwnerDrawPropertyBag.cs
- SQLDateTimeStorage.cs
- SafeNativeMethodsOther.cs
- VBIdentifierDesigner.xaml.cs
- RadialGradientBrush.cs
- FixedBufferAttribute.cs
- SelectionItemProviderWrapper.cs
- XamlDesignerSerializationManager.cs
- PassportAuthenticationEventArgs.cs
- SafePEFileHandle.cs
- NullableDoubleAverageAggregationOperator.cs
- XamlPoint3DCollectionSerializer.cs
- Root.cs
- Assembly.cs
- CanonicalFontFamilyReference.cs
- DataTableTypeConverter.cs
- ScriptMethodAttribute.cs
- DesignerValidatorAdapter.cs
- StylusDevice.cs
- Propagator.JoinPropagator.cs
- ICspAsymmetricAlgorithm.cs
- DiscoveryDefaults.cs
- SchemaCollectionPreprocessor.cs
- RoleGroupCollection.cs
- TimeStampChecker.cs
- XmlDocumentFragment.cs
- RouteItem.cs
- ConsumerConnectionPoint.cs
- sqlnorm.cs
- XPathNavigatorKeyComparer.cs
- DrawingAttributesDefaultValueFactory.cs
- SurrogateEncoder.cs
- ShapingEngine.cs
- CustomValidator.cs
- DebugInfoExpression.cs
- MsmqTransportSecurity.cs
- IntSecurity.cs
- SynchronizationContext.cs
- SByteStorage.cs
- IIS7ConfigurationLoader.cs
- DictionaryBase.cs
- InstanceView.cs
- WindowsSpinner.cs
- XamlBrushSerializer.cs
- MetaColumn.cs
- StructuralType.cs
- Object.cs
- TypeEnumerableViewSchema.cs
- SetterBase.cs
- WaitForChangedResult.cs
- ClientSettingsSection.cs
- AttachedAnnotationChangedEventArgs.cs
- CmsInterop.cs
- SpotLight.cs
- ContainerVisual.cs
- MetadataProperty.cs
- SQLDecimal.cs
- AdPostCacheSubstitution.cs
- DataRow.cs
- XmlDocumentType.cs
- UInt32.cs
- SqlUtil.cs
- ResourcePart.cs