Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / ZoneButton.cs / 1 / ZoneButton.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Web.UI.WebControls; [SupportsEventValidation] internal sealed class ZoneButton : Button { private WebZone _owner; private string _eventArgument; public ZoneButton(WebZone owner, string eventArgument) { if (owner == null) { throw new ArgumentNullException("owner"); } _owner = owner; _eventArgument = eventArgument; } [ DefaultValue(false), ] public override bool UseSubmitBehavior { get { return false; } set { // This is an internal sealed class so we know the setter is never called. throw new InvalidOperationException(); } } protected override PostBackOptions GetPostBackOptions() { // _owner.Page may be null in the designer if (!String.IsNullOrEmpty(_eventArgument) && _owner.Page != null) { PostBackOptions options = new PostBackOptions(_owner, _eventArgument); options.ClientSubmit = true; return options; } return base.GetPostBackOptions(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PassportAuthenticationEventArgs.cs
- GridToolTip.cs
- UrlAuthFailedErrorFormatter.cs
- ToolboxItemAttribute.cs
- TimelineClockCollection.cs
- userdatakeys.cs
- glyphs.cs
- TokenBasedSet.cs
- AxisAngleRotation3D.cs
- DataGridViewCellStyleChangedEventArgs.cs
- LazyTextWriterCreator.cs
- MouseEventArgs.cs
- DynamicPhysicalDiscoSearcher.cs
- DataGridRow.cs
- IdnElement.cs
- SessionStateUtil.cs
- ZoneButton.cs
- M3DUtil.cs
- DocumentApplication.cs
- StringOutput.cs
- RelatedCurrencyManager.cs
- EventListener.cs
- SemanticResultKey.cs
- SequenceFullException.cs
- PixelFormatConverter.cs
- ExcludeFromCodeCoverageAttribute.cs
- ScrollEventArgs.cs
- TemplateNodeContextMenu.cs
- SettingsAttributeDictionary.cs
- SafeNativeMethods.cs
- SplitContainer.cs
- PolygonHotSpot.cs
- VirtualDirectoryMapping.cs
- ElementNotEnabledException.cs
- CollectionBuilder.cs
- SchemaNamespaceManager.cs
- DirectoryInfo.cs
- AssemblyCollection.cs
- MessageCredentialType.cs
- ADConnectionHelper.cs
- TableParaClient.cs
- WebColorConverter.cs
- IdnElement.cs
- TableRowCollection.cs
- MsmqUri.cs
- CorrelationService.cs
- KeyValuePairs.cs
- ListBindingConverter.cs
- ToolStripSystemRenderer.cs
- OracleTransaction.cs
- SQLResource.cs
- BroadcastEventHelper.cs
- Package.cs
- TransformerInfoCollection.cs
- WorkflowDesignerColors.cs
- MatrixAnimationUsingPath.cs
- RectIndependentAnimationStorage.cs
- GridViewDeletedEventArgs.cs
- ListDataBindEventArgs.cs
- SqlDataSourceConfigureFilterForm.cs
- AccessViolationException.cs
- NativeMethods.cs
- TextFindEngine.cs
- DataGridRowsPresenter.cs
- PagedDataSource.cs
- ToolStripSplitButton.cs
- TTSEngineProxy.cs
- MultiSelectRootGridEntry.cs
- LinkClickEvent.cs
- validationstate.cs
- WSDualHttpBindingCollectionElement.cs
- FileLevelControlBuilderAttribute.cs
- ExtenderControl.cs
- CodeAccessPermission.cs
- EventDescriptor.cs
- AsyncResult.cs
- ModelPropertyDescriptor.cs
- Package.cs
- GridView.cs
- HotCommands.cs
- externdll.cs
- DataBoundControlHelper.cs
- UrlMappingsSection.cs
- WebPartDisplayMode.cs
- ServiceDescriptionData.cs
- XmlCDATASection.cs
- SHA256Managed.cs
- ToolboxDataAttribute.cs
- ZipIOLocalFileDataDescriptor.cs
- FormClosedEvent.cs
- FunctionMappingTranslator.cs
- QueryBranchOp.cs
- TextFormattingConverter.cs
- ResourceWriter.cs
- CurrentChangingEventArgs.cs
- AssemblySettingAttributes.cs
- Constants.cs
- BasePropertyDescriptor.cs
- InternalRelationshipCollection.cs
- SqlTopReducer.cs