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
- RegexGroupCollection.cs
- ToolboxItemCollection.cs
- ButtonPopupAdapter.cs
- OracleInternalConnection.cs
- PowerEase.cs
- CorrelationQueryBehavior.cs
- PixelShader.cs
- BaseValidator.cs
- Types.cs
- DataControlFieldCell.cs
- StoreContentChangedEventArgs.cs
- BufferedGraphics.cs
- PageCache.cs
- SqlFunctionAttribute.cs
- PointLight.cs
- BaseHashHelper.cs
- objectquery_tresulttype.cs
- GridEntryCollection.cs
- XmlElementAttributes.cs
- RelationshipFixer.cs
- XdrBuilder.cs
- DataContext.cs
- altserialization.cs
- Rectangle.cs
- SapiRecoInterop.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- HttpValueCollection.cs
- VerticalAlignConverter.cs
- OperatingSystemVersionCheck.cs
- FontNamesConverter.cs
- EntityProviderFactory.cs
- ResourceReferenceExpressionConverter.cs
- DoubleAnimationBase.cs
- New.cs
- WebUtil.cs
- HttpRequestBase.cs
- METAHEADER.cs
- ObjectViewEntityCollectionData.cs
- ColumnReorderedEventArgs.cs
- BrowsableAttribute.cs
- ObjectViewFactory.cs
- ComponentEditorForm.cs
- DefaultMemberAttribute.cs
- _SslState.cs
- XmlTextReader.cs
- Propagator.JoinPropagator.cs
- PreloadHost.cs
- HashFinalRequest.cs
- PointAnimation.cs
- BitmapEffectvisualstate.cs
- ColorBlend.cs
- Itemizer.cs
- XmlExpressionDumper.cs
- DbConnectionStringBuilder.cs
- ZoneLinkButton.cs
- IItemContainerGenerator.cs
- ObjectHandle.cs
- ParameterCollection.cs
- OracleDateTime.cs
- CompileXomlTask.cs
- ZoneMembershipCondition.cs
- CheckBoxBaseAdapter.cs
- Point3DConverter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- BitmapEffectDrawing.cs
- StrokeNodeOperations.cs
- EDesignUtil.cs
- InheritanceContextHelper.cs
- CodeConditionStatement.cs
- PrimarySelectionAdorner.cs
- AsymmetricKeyExchangeDeformatter.cs
- UIPropertyMetadata.cs
- CachingHintValidation.cs
- RunWorkerCompletedEventArgs.cs
- GAC.cs
- ZipIOLocalFileHeader.cs
- ControlCollection.cs
- Point4DConverter.cs
- EnumConverter.cs
- _LocalDataStoreMgr.cs
- TemplateField.cs
- CacheChildrenQuery.cs
- SafeEventHandle.cs
- SortExpressionBuilder.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DataControlButton.cs
- PrincipalPermission.cs
- Font.cs
- LineBreakRecord.cs
- AcceleratedTokenAuthenticator.cs
- TextCompositionEventArgs.cs
- DataSetUtil.cs
- XmlQueryOutput.cs
- SiteMapHierarchicalDataSourceView.cs
- ReflectionUtil.cs
- ConfigurationSectionCollection.cs
- GridItemCollection.cs
- ObjectStateFormatter.cs
- XsltInput.cs
- BoolExpressionVisitors.cs