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
- XmlElementCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlChildEnumerator.cs
- BulletChrome.cs
- TreeChangeInfo.cs
- IteratorDescriptor.cs
- TrustManagerMoreInformation.cs
- DataGridViewColumnCollection.cs
- BStrWrapper.cs
- SecurityRuntime.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ComponentChangedEvent.cs
- AutomationElementIdentifiers.cs
- KeyBinding.cs
- TextPenaltyModule.cs
- TextEffectCollection.cs
- DocumentViewer.cs
- PersonalizationStateInfoCollection.cs
- DomainConstraint.cs
- DataColumnMappingCollection.cs
- CharUnicodeInfo.cs
- DaylightTime.cs
- UpdateProgress.cs
- SortFieldComparer.cs
- MouseCaptureWithinProperty.cs
- XhtmlConformanceSection.cs
- HttpProcessUtility.cs
- CharEntityEncoderFallback.cs
- QueryCacheManager.cs
- TemplateControlParser.cs
- SessionStateSection.cs
- HandlerFactoryCache.cs
- NopReturnReader.cs
- Formatter.cs
- ListControlConvertEventArgs.cs
- AliasExpr.cs
- SoapCodeExporter.cs
- LookupNode.cs
- LinqDataSourceDeleteEventArgs.cs
- StreamMarshaler.cs
- AddToCollection.cs
- SystemColors.cs
- ReverseInheritProperty.cs
- XPathAncestorQuery.cs
- IImplicitResourceProvider.cs
- PathData.cs
- StrokeCollection2.cs
- DSASignatureFormatter.cs
- CompilationUtil.cs
- FontEmbeddingManager.cs
- PieceDirectory.cs
- SqlNodeAnnotations.cs
- ComponentCollection.cs
- SiteMapPathDesigner.cs
- Border.cs
- Variant.cs
- Select.cs
- BackgroundWorker.cs
- RegisteredHiddenField.cs
- FixedPageProcessor.cs
- CompoundFileStorageReference.cs
- FactoryGenerator.cs
- NextPreviousPagerField.cs
- ControlParameter.cs
- ADMembershipUser.cs
- RewritingProcessor.cs
- MarkupCompiler.cs
- ToolboxDataAttribute.cs
- ParameterElementCollection.cs
- HttpListener.cs
- FlowDocumentPageViewerAutomationPeer.cs
- pingexception.cs
- Int64Animation.cs
- AssociationSetMetadata.cs
- DataBoundControlHelper.cs
- LogStream.cs
- TextWriterEngine.cs
- ClusterRegistryConfigurationProvider.cs
- GraphicsPathIterator.cs
- Compiler.cs
- HitTestDrawingContextWalker.cs
- RectangleConverter.cs
- HtmlGenericControl.cs
- PrePostDescendentsWalker.cs
- HitTestFilterBehavior.cs
- InheritanceAttribute.cs
- PointLightBase.cs
- TypeUtils.cs
- __TransparentProxy.cs
- KeyConstraint.cs
- LiteralLink.cs
- SimpleHandlerBuildProvider.cs
- XmlCharCheckingReader.cs
- ConfigurationStrings.cs
- EntityDataSourceContainerNameConverter.cs
- PickBranch.cs
- CircleEase.cs
- TabControl.cs
- DetailsViewDeleteEventArgs.cs
- WebServiceMethodData.cs