Code:
/ FX-1434 / FX-1434 / 1.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
- PropertyTabAttribute.cs
- ReadingWritingEntityEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- BuilderPropertyEntry.cs
- CollectionConverter.cs
- ByValueEqualityComparer.cs
- LowerCaseStringConverter.cs
- Int64Storage.cs
- UnaryNode.cs
- ComponentSerializationService.cs
- handlecollector.cs
- EventInfo.cs
- ParagraphResult.cs
- _NetRes.cs
- FrameworkObject.cs
- InheritanceContextHelper.cs
- SQLConvert.cs
- ClientCredentialsSecurityTokenManager.cs
- HtmlWindowCollection.cs
- Boolean.cs
- HandleTable.cs
- Type.cs
- DataSourceConverter.cs
- ColumnResult.cs
- metrodevice.cs
- InitializationEventAttribute.cs
- BitmapPalettes.cs
- XmlSerializerNamespaces.cs
- SqlCharStream.cs
- EtwProvider.cs
- Blend.cs
- InkSerializer.cs
- TreeNodeStyle.cs
- WinEventWrap.cs
- BaseProcessor.cs
- StateItem.cs
- StdValidatorsAndConverters.cs
- SimpleExpression.cs
- CodeCatchClause.cs
- XPathParser.cs
- BoundColumn.cs
- DataGridViewCellFormattingEventArgs.cs
- BamlVersionHeader.cs
- oledbconnectionstring.cs
- ScriptHandlerFactory.cs
- BasicViewGenerator.cs
- StyleBamlRecordReader.cs
- PreviewPrintController.cs
- prefixendpointaddressmessagefilter.cs
- QueryModel.cs
- filewebresponse.cs
- HtmlForm.cs
- ProcessThreadDesigner.cs
- BaseContextMenu.cs
- ContainerTracking.cs
- WebBrowser.cs
- BaseProcessor.cs
- ToolStripItem.cs
- XamlVector3DCollectionSerializer.cs
- COM2IDispatchConverter.cs
- CollectionViewGroupRoot.cs
- ClientApiGenerator.cs
- CreateUserErrorEventArgs.cs
- HtmlInputImage.cs
- CodeLinePragma.cs
- DashStyle.cs
- InOutArgumentConverter.cs
- BitmapEffectrendercontext.cs
- FtpRequestCacheValidator.cs
- StylusDevice.cs
- DesignSurfaceCollection.cs
- X509Extension.cs
- EventLogPropertySelector.cs
- UnsafeNativeMethods.cs
- ContextBase.cs
- HasCopySemanticsAttribute.cs
- IssuedTokenParametersEndpointAddressElement.cs
- BrowsableAttribute.cs
- EpmContentSerializerBase.cs
- SessionState.cs
- UntypedNullExpression.cs
- ConvertersCollection.cs
- HttpListenerException.cs
- StringBuilder.cs
- TreePrinter.cs
- OutputCacheModule.cs
- ProfileParameter.cs
- PreviousTrackingServiceAttribute.cs
- TextSegment.cs
- OSFeature.cs
- DropSource.cs
- DataGridViewAdvancedBorderStyle.cs
- IPAddress.cs
- WebPartConnectionsConnectVerb.cs
- PropertyInformation.cs
- Help.cs
- BuildManager.cs
- HandleRef.cs
- OutputCacheSettings.cs
- PointLight.cs