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
- HashCodeCombiner.cs
- SpellCheck.cs
- XmlSubtreeReader.cs
- HttpApplicationStateBase.cs
- WinEventWrap.cs
- ComplusEndpointConfigContainer.cs
- LinkedResource.cs
- ChineseLunisolarCalendar.cs
- EdmItemError.cs
- tibetanshape.cs
- CompilerResults.cs
- GeometryHitTestResult.cs
- FragmentQueryKB.cs
- CompilationSection.cs
- AffineTransform3D.cs
- StorageEntitySetMapping.cs
- RightsManagementLicense.cs
- IDReferencePropertyAttribute.cs
- SecurityIdentifierElement.cs
- WmlPageAdapter.cs
- ProjectionPathBuilder.cs
- XmlSortKeyAccumulator.cs
- WindowsRichEdit.cs
- UpdatePanelControlTrigger.cs
- WorkflowDefinitionDispenser.cs
- PathTooLongException.cs
- ExecutionScope.cs
- StrongNameUtility.cs
- XmlSerializerVersionAttribute.cs
- OdbcFactory.cs
- InertiaRotationBehavior.cs
- ExceptionUtil.cs
- TextAutomationPeer.cs
- TriggerCollection.cs
- HttpConfigurationSystem.cs
- Set.cs
- InteropExecutor.cs
- SwitchAttribute.cs
- FileLoadException.cs
- CreatingCookieEventArgs.cs
- CheckBoxPopupAdapter.cs
- PropertiesTab.cs
- KeySplineConverter.cs
- Int16Converter.cs
- MDIControlStrip.cs
- ImplicitInputBrush.cs
- TableParagraph.cs
- CodeDelegateCreateExpression.cs
- SudsCommon.cs
- SpecialFolderEnumConverter.cs
- TimeSpanValidator.cs
- PageCodeDomTreeGenerator.cs
- TypefaceMetricsCache.cs
- SoapFormatExtensions.cs
- RestHandler.cs
- basemetadatamappingvisitor.cs
- Vector3DCollection.cs
- EventMappingSettings.cs
- NegationPusher.cs
- CodeTryCatchFinallyStatement.cs
- CodeDOMUtility.cs
- InputScope.cs
- ClassHandlersStore.cs
- SqlCrossApplyToCrossJoin.cs
- MimeFormatExtensions.cs
- CollectionChangeEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- VectorValueSerializer.cs
- IfElseDesigner.xaml.cs
- BinaryConverter.cs
- ResXBuildProvider.cs
- TextTreeUndoUnit.cs
- XmlSerializationReader.cs
- SemanticTag.cs
- DataPagerFieldCollection.cs
- Size3DConverter.cs
- CustomAttribute.cs
- TaiwanLunisolarCalendar.cs
- GridView.cs
- CompilerError.cs
- TdsParserStateObject.cs
- TextServicesLoader.cs
- GridViewCancelEditEventArgs.cs
- XmlSubtreeReader.cs
- RepeaterItem.cs
- TypeTypeConverter.cs
- FunctionDescription.cs
- DockAndAnchorLayout.cs
- serverconfig.cs
- DebugHandleTracker.cs
- storepermissionattribute.cs
- XmlAttributeOverrides.cs
- InkCanvas.cs
- ArgumentOutOfRangeException.cs
- StringToken.cs
- Base64WriteStateInfo.cs
- CharAnimationUsingKeyFrames.cs
- RepeatButtonAutomationPeer.cs
- TdsValueSetter.cs
- BuiltInExpr.cs