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
- WmfPlaceableFileHeader.cs
- Pen.cs
- SimpleFieldTemplateFactory.cs
- ActivityTrace.cs
- IPGlobalProperties.cs
- SymbolMethod.cs
- InkPresenter.cs
- ICollection.cs
- GeneralTransformCollection.cs
- FileLevelControlBuilderAttribute.cs
- OleDbCommandBuilder.cs
- SqlXml.cs
- DataGrid.cs
- TypeValidationEventArgs.cs
- ThreadStaticAttribute.cs
- SpeakCompletedEventArgs.cs
- TimerElapsedEvenArgs.cs
- CorrelationTokenInvalidatedHandler.cs
- CFStream.cs
- DataGridViewComboBoxEditingControl.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- AssemblyAttributesGoHere.cs
- ArgumentValueSerializer.cs
- FontDriver.cs
- GroupedContextMenuStrip.cs
- SBCSCodePageEncoding.cs
- SqlTypesSchemaImporter.cs
- RelatedImageListAttribute.cs
- ScaleTransform.cs
- TransactionState.cs
- PolicyLevel.cs
- InheritanceAttribute.cs
- FormatConvertedBitmap.cs
- ScrollItemPattern.cs
- WpfPayload.cs
- ScanQueryOperator.cs
- DataGridViewLinkColumn.cs
- GridViewUpdateEventArgs.cs
- ToolStripLabel.cs
- EventProvider.cs
- Transform.cs
- SqlBuffer.cs
- LineUtil.cs
- HttpChannelBindingToken.cs
- ArrayConverter.cs
- SizeChangedInfo.cs
- Utilities.cs
- DbConnectionInternal.cs
- ToolStripContentPanel.cs
- ConnectivityStatus.cs
- DefaultTextStore.cs
- DbMetaDataColumnNames.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- DurableErrorHandler.cs
- ToolStripOverflow.cs
- RelationshipFixer.cs
- Avt.cs
- validationstate.cs
- SemanticKeyElement.cs
- BitmapEffectInputConnector.cs
- Manipulation.cs
- SerializationAttributes.cs
- DataSvcMapFile.cs
- WebPartCatalogAddVerb.cs
- PromptBuilder.cs
- IOThreadScheduler.cs
- DiagnosticsConfigurationHandler.cs
- ApplicationTrust.cs
- ParameterBuilder.cs
- ScrollBar.cs
- FirewallWrapper.cs
- RelationshipFixer.cs
- StatusBarItemAutomationPeer.cs
- ColorAnimationBase.cs
- Matrix.cs
- UnsafeCollabNativeMethods.cs
- HwndSourceParameters.cs
- MouseActionValueSerializer.cs
- WindowsPrincipal.cs
- SrgsRule.cs
- ResetableIterator.cs
- PathGeometry.cs
- FixedSOMLineRanges.cs
- WFItemsToSpacerVisibility.cs
- Freezable.cs
- SqlCaseSimplifier.cs
- RunWorkerCompletedEventArgs.cs
- VirtualPath.cs
- CngKeyCreationParameters.cs
- UIElementParaClient.cs
- UnsafeNativeMethodsTablet.cs
- HttpHeaderCollection.cs
- RawTextInputReport.cs
- DynamicRendererThreadManager.cs
- MimeTypeAttribute.cs
- SqlDataSourceRefreshSchemaForm.cs
- ListContractAdapter.cs
- SerialErrors.cs
- HttpCapabilitiesEvaluator.cs
- Stream.cs