Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataTableReaderListener.cs
- TabControlDesigner.cs
- SchemaMerger.cs
- DynamicUpdateCommand.cs
- XPathBinder.cs
- entityreference_tresulttype.cs
- ParsedAttributeCollection.cs
- Int32KeyFrameCollection.cs
- SqlBuilder.cs
- UndirectedGraph.cs
- SharedUtils.cs
- TextTreeInsertElementUndoUnit.cs
- WithParamAction.cs
- DataTableMappingCollection.cs
- CacheEntry.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DataGridColumn.cs
- XmlSerializerNamespaces.cs
- CollectionDataContract.cs
- NativeRightsManagementAPIsStructures.cs
- ZipPackagePart.cs
- BatchWriter.cs
- ConnectionPointCookie.cs
- base64Transforms.cs
- Trigger.cs
- EmptyStringExpandableObjectConverter.cs
- coordinatorfactory.cs
- DataTableMapping.cs
- FontDifferentiator.cs
- ToolStripRendererSwitcher.cs
- LayoutSettings.cs
- WSFederationHttpBindingCollectionElement.cs
- XmlSchemaGroup.cs
- _SafeNetHandles.cs
- SamlNameIdentifierClaimResource.cs
- DataControlPagerLinkButton.cs
- RegisteredDisposeScript.cs
- HttpBrowserCapabilitiesWrapper.cs
- ClearCollection.cs
- FontUnitConverter.cs
- MostlySingletonList.cs
- InkCollectionBehavior.cs
- FieldToken.cs
- DesignerAdapterAttribute.cs
- SparseMemoryStream.cs
- SizeAnimationClockResource.cs
- TypeSystemHelpers.cs
- OdbcEnvironmentHandle.cs
- AutomationProperty.cs
- figurelength.cs
- GeometryCombineModeValidation.cs
- UnsettableComboBox.cs
- ActivityStateRecord.cs
- JournalEntryStack.cs
- CharUnicodeInfo.cs
- Pair.cs
- XPathAncestorIterator.cs
- PauseStoryboard.cs
- PresentationTraceSources.cs
- AutoCompleteStringCollection.cs
- XmlTextWriter.cs
- FilteredDataSetHelper.cs
- ReferentialConstraint.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ListBoxItemWrapperAutomationPeer.cs
- ELinqQueryState.cs
- SqlGatherProducedAliases.cs
- StickyNote.cs
- EmptyEnumerable.cs
- AttributeCollection.cs
- UIElement3DAutomationPeer.cs
- TraceSection.cs
- ImmutableObjectAttribute.cs
- RenderTargetBitmap.cs
- XmlSequenceWriter.cs
- TouchFrameEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- AttachInfo.cs
- RectAnimationUsingKeyFrames.cs
- NetNamedPipeSecurity.cs
- MetadataWorkspace.cs
- DesignerActionGlyph.cs
- PeerValidationBehavior.cs
- WebBrowsableAttribute.cs
- InputScope.cs
- TabRenderer.cs
- ExpressionBuilder.cs
- PeerPresenceInfo.cs
- CacheRequest.cs
- SingleObjectCollection.cs
- DLinqAssociationProvider.cs
- DataGridTemplateColumn.cs
- ColorMatrix.cs
- CodeDomSerializer.cs
- PassportPrincipal.cs
- ObjectDataSourceSelectingEventArgs.cs
- PathSegment.cs
- DesignerVerbCollection.cs
- documentsequencetextpointer.cs
- HMAC.cs