Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataControlButton.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlWrappingReader.cs
- ProviderConnectionPointCollection.cs
- InfoCardProofToken.cs
- CollectionExtensions.cs
- Internal.cs
- PropertyMap.cs
- TextWriter.cs
- LinqDataSourceInsertEventArgs.cs
- ProjectionNode.cs
- SQLInt32Storage.cs
- CompositeActivityTypeDescriptorProvider.cs
- NameValuePermission.cs
- DataListCommandEventArgs.cs
- Odbc32.cs
- Tile.cs
- Mapping.cs
- ChannelSinkStacks.cs
- SimpleTypeResolver.cs
- QueryOptionExpression.cs
- XdrBuilder.cs
- ClientApiGenerator.cs
- StateMachineWorkflow.cs
- SerialPinChanges.cs
- TextCharacters.cs
- DataGridAutomationPeer.cs
- Point4D.cs
- PackageProperties.cs
- BitmapPalette.cs
- GridViewRowEventArgs.cs
- MSG.cs
- Interfaces.cs
- ClientScriptManagerWrapper.cs
- MetaChildrenColumn.cs
- InputLanguageSource.cs
- SafeBitVector32.cs
- RotateTransform.cs
- CollectionViewGroup.cs
- Line.cs
- VisualBasicSettings.cs
- SHA1CryptoServiceProvider.cs
- MultiPropertyDescriptorGridEntry.cs
- TraceInternal.cs
- SqlRecordBuffer.cs
- TypeCodeDomSerializer.cs
- httpstaticobjectscollection.cs
- NotCondition.cs
- DtdParser.cs
- StructureChangedEventArgs.cs
- MissingSatelliteAssemblyException.cs
- TextBoxView.cs
- ContextStack.cs
- COM2FontConverter.cs
- KeyValuePair.cs
- Transform.cs
- WsdlInspector.cs
- Polygon.cs
- QuaternionConverter.cs
- Pair.cs
- StorageBasedPackageProperties.cs
- MdiWindowListItemConverter.cs
- CompilerErrorCollection.cs
- DBAsyncResult.cs
- SuppressIldasmAttribute.cs
- CalendarTable.cs
- ClassData.cs
- DataViewManagerListItemTypeDescriptor.cs
- SqlProfileProvider.cs
- CachedFontFamily.cs
- XmlNavigatorStack.cs
- ActivatedMessageQueue.cs
- TabRenderer.cs
- HwndSubclass.cs
- HttpProtocolImporter.cs
- TypeInitializationException.cs
- PreProcessor.cs
- ConfigurationElementProperty.cs
- CultureMapper.cs
- CallbackHandler.cs
- UnlockInstanceAsyncResult.cs
- AssertSection.cs
- XPathArrayIterator.cs
- CodeIdentifier.cs
- SubMenuStyleCollectionEditor.cs
- ViewStateModeByIdAttribute.cs
- NativeMethods.cs
- DataBindingCollection.cs
- DBCommand.cs
- WebBrowserContainer.cs
- LocationReferenceValue.cs
- DecimalAnimationUsingKeyFrames.cs
- TypeBuilderInstantiation.cs
- SimplePropertyEntry.cs
- BezierSegment.cs
- StrongBox.cs
- BounceEase.cs
- SecurityTokenRequirement.cs
- Identity.cs
- glyphs.cs
- WindowsAuthenticationModule.cs
- ProfileEventArgs.cs