Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ZoneButton.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OTFRasterizer.cs
- SpotLight.cs
- QueryCacheManager.cs
- Polyline.cs
- DataServiceResponse.cs
- LinqDataSourceStatusEventArgs.cs
- HtmlInputImage.cs
- MarkupObject.cs
- CompositeDesignerAccessibleObject.cs
- X509ChainElement.cs
- CapacityStreamGeometryContext.cs
- EncodingInfo.cs
- EventQueueState.cs
- SQLStringStorage.cs
- GeometryHitTestResult.cs
- GroupBoxDesigner.cs
- ValueType.cs
- LocationChangedEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- Stylesheet.cs
- SRef.cs
- SplayTreeNode.cs
- FontFamily.cs
- SerializableAttribute.cs
- ColorInterpolationModeValidation.cs
- LinearGradientBrush.cs
- SQLInt64Storage.cs
- ResourceDisplayNameAttribute.cs
- ProcessModelSection.cs
- CodeDomSerializationProvider.cs
- CornerRadiusConverter.cs
- DataGridViewRowConverter.cs
- BlurBitmapEffect.cs
- TextEditorLists.cs
- WebContext.cs
- ToolStripItemRenderEventArgs.cs
- UrlPropertyAttribute.cs
- ColumnWidthChangedEvent.cs
- ContainerFilterService.cs
- EncryptedReference.cs
- Imaging.cs
- TemplateBindingExpression.cs
- EntityCommandExecutionException.cs
- WasAdminWrapper.cs
- Stack.cs
- SQLConvert.cs
- DataGridViewCellFormattingEventArgs.cs
- XmlSchemaParticle.cs
- RandomDelayQueuedSendsAsyncResult.cs
- XmlEncodedRawTextWriter.cs
- CodeThrowExceptionStatement.cs
- SimpleHandlerFactory.cs
- WindowsEditBox.cs
- SQLInt32Storage.cs
- Keyboard.cs
- DynamicValueConverter.cs
- DisplayToken.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ToggleButton.cs
- Odbc32.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- RangeValuePatternIdentifiers.cs
- CapiNative.cs
- BulletedListEventArgs.cs
- TaskCanceledException.cs
- StdRegProviderWrapper.cs
- StrokeCollectionConverter.cs
- ScrollChrome.cs
- X509Extension.cs
- BasicBrowserDialog.cs
- DescendentsWalker.cs
- TextFormatterImp.cs
- IgnorePropertiesAttribute.cs
- RewritingProcessor.cs
- AdapterUtil.cs
- ModelItemCollection.cs
- StateWorkerRequest.cs
- ListViewTableCell.cs
- MimeObjectFactory.cs
- XmlArrayItemAttributes.cs
- GenericEnumConverter.cs
- GZipDecoder.cs
- DataGridViewElement.cs
- SpeechRecognitionEngine.cs
- PeerNameRecord.cs
- GenericEnumerator.cs
- Highlights.cs
- mda.cs
- SimpleHandlerBuildProvider.cs
- EntityKeyElement.cs
- DataGridViewCellStateChangedEventArgs.cs
- DesignerActionUI.cs
- TextureBrush.cs
- TagPrefixAttribute.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- MdiWindowListItemConverter.cs
- NotImplementedException.cs
- QueryCacheEntry.cs
- SqlDataSourceConnectionPanel.cs
- FactoryMaker.cs