Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Crc32Helper.cs
- WebPartActionVerb.cs
- ToolBarDesigner.cs
- VerbConverter.cs
- SharedPerformanceCounter.cs
- DataGridCommandEventArgs.cs
- ProcessProtocolHandler.cs
- ComAdminInterfaces.cs
- ProtocolViolationException.cs
- AutoResetEvent.cs
- SignedPkcs7.cs
- PowerModeChangedEventArgs.cs
- SQLGuidStorage.cs
- SessionEndingCancelEventArgs.cs
- SizeFConverter.cs
- StubHelpers.cs
- UIElementParagraph.cs
- ProcessThreadCollection.cs
- TextFormatterHost.cs
- BinaryHeap.cs
- Point3DIndependentAnimationStorage.cs
- ConnectionPoint.cs
- LocalizableResourceBuilder.cs
- BidPrivateBase.cs
- Baml2006KeyRecord.cs
- Compiler.cs
- CacheMode.cs
- AuthenticationServiceManager.cs
- CellParaClient.cs
- EncodingInfo.cs
- RegistryPermission.cs
- COM2TypeInfoProcessor.cs
- LayoutEngine.cs
- TextEditorDragDrop.cs
- WindowHelperService.cs
- EditCommandColumn.cs
- Viewport3DAutomationPeer.cs
- XamlTypeMapper.cs
- Screen.cs
- CommentAction.cs
- WizardForm.cs
- CodeDomComponentSerializationService.cs
- MetadataProperty.cs
- ProtectedConfiguration.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- Clock.cs
- Border.cs
- LinearGradientBrush.cs
- DataGridViewRowPrePaintEventArgs.cs
- Light.cs
- ManipulationPivot.cs
- WindowsSysHeader.cs
- CheckBoxFlatAdapter.cs
- NegationPusher.cs
- QilLiteral.cs
- OleDbDataAdapter.cs
- CodeRegionDirective.cs
- CompensationHandlingFilter.cs
- UTF7Encoding.cs
- ObjectStateEntryDbDataRecord.cs
- ContextMenu.cs
- LinearKeyFrames.cs
- SkinBuilder.cs
- TextBox.cs
- listitem.cs
- SqlDataReaderSmi.cs
- RegisteredDisposeScript.cs
- ListViewInsertEventArgs.cs
- BaseParser.cs
- DynamicILGenerator.cs
- AgileSafeNativeMemoryHandle.cs
- PointF.cs
- SortKey.cs
- BamlRecords.cs
- DataGridViewBindingCompleteEventArgs.cs
- SmiContext.cs
- HwndStylusInputProvider.cs
- ClientRequest.cs
- Table.cs
- InstanceData.cs
- DoubleConverter.cs
- AppDomain.cs
- ReferencedAssembly.cs
- BaseValidator.cs
- PiiTraceSource.cs
- ILGenerator.cs
- AndAlso.cs
- QilNode.cs
- _UncName.cs
- PtsCache.cs
- AutoSizeToolBoxItem.cs
- RequestQueue.cs
- TagPrefixAttribute.cs
- PageRouteHandler.cs
- MethodBuilderInstantiation.cs
- EdmToObjectNamespaceMap.cs
- SqlLiftIndependentRowExpressions.cs
- ColumnTypeConverter.cs
- NullableDecimalSumAggregationOperator.cs