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
- Matrix.cs
- AlphabetConverter.cs
- ProgressBarAutomationPeer.cs
- XmlFormatWriterGenerator.cs
- TransactionsSectionGroup.cs
- DbQueryCommandTree.cs
- WebPartConnectionsEventArgs.cs
- Rect3D.cs
- EventSchemaTraceListener.cs
- PathGradientBrush.cs
- X509CertificateStore.cs
- ComponentEditorForm.cs
- CodeValidator.cs
- ModulesEntry.cs
- RouteCollection.cs
- BamlRecords.cs
- entitydatasourceentitysetnameconverter.cs
- GroupBox.cs
- SqlCacheDependencyDatabaseCollection.cs
- ComponentDispatcher.cs
- WinFormsSpinner.cs
- TableRow.cs
- StaticTextPointer.cs
- SendSecurityHeader.cs
- EventMappingSettingsCollection.cs
- ViewStateException.cs
- FolderBrowserDialogDesigner.cs
- EndpointAddress.cs
- CompositeDataBoundControl.cs
- LayoutTableCell.cs
- ObjectNotFoundException.cs
- Assign.cs
- DtdParser.cs
- TrackingServices.cs
- MetadataFile.cs
- TimeSpanSecondsConverter.cs
- SmtpFailedRecipientsException.cs
- DoubleAnimationClockResource.cs
- ListBoxDesigner.cs
- InputLangChangeEvent.cs
- LiteralTextContainerControlBuilder.cs
- DesignSurfaceServiceContainer.cs
- XmlReaderSettings.cs
- GraphicsState.cs
- XmlCharCheckingReader.cs
- _AutoWebProxyScriptHelper.cs
- KeyTimeConverter.cs
- sortedlist.cs
- TemplateParser.cs
- Nodes.cs
- PageWrapper.cs
- LocatorPartList.cs
- ApplicationInfo.cs
- QuaternionAnimationBase.cs
- UserPersonalizationStateInfo.cs
- OutOfMemoryException.cs
- ConfigurationCollectionAttribute.cs
- HttpResponseInternalWrapper.cs
- OutputCacheSection.cs
- FixedDocumentSequencePaginator.cs
- LineBreakRecord.cs
- Formatter.cs
- EncryptedType.cs
- MultipleViewPattern.cs
- DataControlButton.cs
- LateBoundChannelParameterCollection.cs
- DesigntimeLicenseContext.cs
- returneventsaver.cs
- RijndaelCryptoServiceProvider.cs
- DataPagerFieldCommandEventArgs.cs
- DataGridAutoFormatDialog.cs
- Pens.cs
- CodeMemberField.cs
- GiveFeedbackEventArgs.cs
- XmlUrlEditor.cs
- PrivilegedConfigurationManager.cs
- GeneralTransform3D.cs
- FormViewAutoFormat.cs
- DropShadowEffect.cs
- TagPrefixAttribute.cs
- ChtmlTextBoxAdapter.cs
- IssuedTokenClientBehaviorsElement.cs
- DbProviderFactory.cs
- WCFServiceClientProxyGenerator.cs
- XmlSchemaComplexContent.cs
- TextSimpleMarkerProperties.cs
- CellRelation.cs
- CodeCatchClauseCollection.cs
- ActivationArguments.cs
- DataServiceRequestOfT.cs
- FlowDocumentView.cs
- ToolboxBitmapAttribute.cs
- ListBoxItemAutomationPeer.cs
- ResourceReader.cs
- XmlElementList.cs
- HashSet.cs
- ScriptManager.cs
- TextEncodedRawTextWriter.cs
- HttpCapabilitiesBase.cs
- WebPartTracker.cs