Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / ZoneButton.cs / 3 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadWriteObjectLock.cs
- ConfigurationManager.cs
- RotateTransform.cs
- WebConfigurationFileMap.cs
- _NestedMultipleAsyncResult.cs
- Geometry3D.cs
- IndentedWriter.cs
- PropertyToken.cs
- Matrix3DStack.cs
- ItemsPresenter.cs
- WorkflowItemPresenter.cs
- SymmetricSecurityProtocol.cs
- MaskInputRejectedEventArgs.cs
- SystemWebCachingSectionGroup.cs
- DataSourceXmlSubItemAttribute.cs
- SchemaObjectWriter.cs
- TableRow.cs
- CompModSwitches.cs
- ParagraphResult.cs
- TemplateComponentConnector.cs
- TypeUnloadedException.cs
- ToolZone.cs
- SqlRowUpdatingEvent.cs
- UrlUtility.cs
- UIntPtr.cs
- SoapDocumentMethodAttribute.cs
- LambdaValue.cs
- PriorityItem.cs
- SafeCryptContextHandle.cs
- ServiceAppDomainAssociationProvider.cs
- InvokeBase.cs
- TimeoutConverter.cs
- FlowDocumentPage.cs
- FontSourceCollection.cs
- Int64KeyFrameCollection.cs
- ContainerFilterService.cs
- AlphabeticalEnumConverter.cs
- Attribute.cs
- NameNode.cs
- DataBinding.cs
- IPipelineRuntime.cs
- SelectionItemProviderWrapper.cs
- MultiDataTrigger.cs
- WmlListAdapter.cs
- DragEvent.cs
- Win32MouseDevice.cs
- ArrayItemValue.cs
- ClientRuntimeConfig.cs
- WebSysDisplayNameAttribute.cs
- XPathAncestorIterator.cs
- OleDbError.cs
- PeerObject.cs
- QuaternionConverter.cs
- DataGridViewCellMouseEventArgs.cs
- IxmlLineInfo.cs
- smtpconnection.cs
- ConfigXmlAttribute.cs
- DbConnectionPoolGroup.cs
- WebReferenceOptions.cs
- ArrangedElementCollection.cs
- SwitchAttribute.cs
- HtmlHistory.cs
- SelectionPatternIdentifiers.cs
- KeyBinding.cs
- WebPartChrome.cs
- ChangeBlockUndoRecord.cs
- StructuralCache.cs
- AmbientValueAttribute.cs
- SqlEnums.cs
- WorkflowServiceAttributesTypeConverter.cs
- MessageHeader.cs
- BitmapEffectRenderDataResource.cs
- ResourceReader.cs
- ServiceModelReg.cs
- SectionVisual.cs
- BinaryNode.cs
- DesignSurfaceServiceContainer.cs
- SoapEnvelopeProcessingElement.cs
- EditorPart.cs
- CompiledRegexRunner.cs
- MemberProjectedSlot.cs
- SHA512Managed.cs
- _PooledStream.cs
- AmbiguousMatchException.cs
- SoundPlayer.cs
- ClockGroup.cs
- UnmanagedMemoryStreamWrapper.cs
- SubqueryRules.cs
- ExecutionContext.cs
- ContentPresenter.cs
- WebPartUserCapability.cs
- LoginUtil.cs
- WebEvents.cs
- OdbcDataReader.cs
- SqlWebEventProvider.cs
- CodeThrowExceptionStatement.cs
- DiscoveryClientBindingElement.cs
- RenderContext.cs
- UrlPath.cs
- FixedElement.cs