Code:
/ DotNET / DotNET / 8.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
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DashStyle.cs
- TemplateColumn.cs
- StreamWriter.cs
- CustomSignedXml.cs
- DataGrid.cs
- EntityViewGenerationAttribute.cs
- ImageFormatConverter.cs
- OrderPreservingPipeliningMergeHelper.cs
- Popup.cs
- PropertyGridView.cs
- VersionPair.cs
- MailMessage.cs
- StreamAsIStream.cs
- StateFinalizationActivity.cs
- DataFormats.cs
- ResourceProperty.cs
- TraceListener.cs
- RepeatBehaviorConverter.cs
- BrowserCapabilitiesFactoryBase.cs
- FamilyTypeface.cs
- ListViewUpdateEventArgs.cs
- HttpListenerContext.cs
- OutputCacheSettingsSection.cs
- XsdBuilder.cs
- MatrixValueSerializer.cs
- StartUpEventArgs.cs
- DayRenderEvent.cs
- DataSysAttribute.cs
- TableAutomationPeer.cs
- FloaterParaClient.cs
- ObfuscationAttribute.cs
- ToolboxItemImageConverter.cs
- EnlistmentTraceIdentifier.cs
- BaseDataBoundControl.cs
- ContentOperations.cs
- FixedBufferAttribute.cs
- IISMapPath.cs
- ProcessInfo.cs
- GlobalEventManager.cs
- SqlExpressionNullability.cs
- IOThreadTimer.cs
- CodeIdentifiers.cs
- XmlSchemaValidationException.cs
- XmlTypeMapping.cs
- CookieParameter.cs
- SweepDirectionValidation.cs
- SecurityKeyType.cs
- LambdaCompiler.Unary.cs
- Cloud.cs
- DomNameTable.cs
- ValueExpressions.cs
- Variant.cs
- SystemUdpStatistics.cs
- FeatureSupport.cs
- OdbcEnvironmentHandle.cs
- AttributeEmitter.cs
- ValueHandle.cs
- ComponentDesigner.cs
- WizardStepBase.cs
- BeginEvent.cs
- ExpressionWriter.cs
- ProtocolsConfigurationEntry.cs
- TransformConverter.cs
- PersonalizableAttribute.cs
- MasterPageParser.cs
- precedingquery.cs
- ControlIdConverter.cs
- WindowsTab.cs
- HttpCacheParams.cs
- Constraint.cs
- UIElement3DAutomationPeer.cs
- WebAdminConfigurationHelper.cs
- EditorZoneBase.cs
- DataGridColumnHeaderAutomationPeer.cs
- ParenthesizePropertyNameAttribute.cs
- SessionEndingEventArgs.cs
- EntryIndex.cs
- WebColorConverter.cs
- Terminate.cs
- IconBitmapDecoder.cs
- TableRow.cs
- StylusEditingBehavior.cs
- _SecureChannel.cs
- MobileContainerDesigner.cs
- ConnectionStringsExpressionBuilder.cs
- PersistenceTypeAttribute.cs
- TextEvent.cs
- RequestContext.cs
- ModelPropertyCollectionImpl.cs
- DebuggerAttributes.cs
- UiaCoreApi.cs
- NoPersistProperty.cs
- Page.cs
- Send.cs
- GeneralTransform3DTo2D.cs
- XPathAncestorQuery.cs
- CharacterMetrics.cs
- AnonymousIdentificationModule.cs
- ProtocolsConfiguration.cs