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
- SqlCommandBuilder.cs
- GridItemPatternIdentifiers.cs
- SoapTypeAttribute.cs
- ProxyElement.cs
- CanonicalXml.cs
- HashCryptoHandle.cs
- StrokeNodeData.cs
- PersonalizationProviderCollection.cs
- DeflateStream.cs
- RightsManagementEncryptionTransform.cs
- Crc32Helper.cs
- TextElementAutomationPeer.cs
- XmlReaderDelegator.cs
- CompleteWizardStep.cs
- FacetEnabledSchemaElement.cs
- Type.cs
- SByteStorage.cs
- AppearanceEditorPart.cs
- BamlLocalizer.cs
- PointAnimationClockResource.cs
- _UncName.cs
- EncoderReplacementFallback.cs
- LifetimeServices.cs
- SponsorHelper.cs
- DesignerResources.cs
- ManagedIStream.cs
- WebSysDisplayNameAttribute.cs
- Shared.cs
- XmlHierarchyData.cs
- AspCompat.cs
- DependencyPropertyHelper.cs
- TemplateField.cs
- PerformanceCounter.cs
- XmlNamespaceDeclarationsAttribute.cs
- CorrelationKeyCalculator.cs
- Converter.cs
- PolygonHotSpot.cs
- XmlFormatExtensionPointAttribute.cs
- PixelShader.cs
- XmlAttributeOverrides.cs
- XmlException.cs
- X509CertificateStore.cs
- CaseExpr.cs
- AnnotationHelper.cs
- UnsafeNativeMethodsCLR.cs
- BulletDecorator.cs
- PreProcessor.cs
- FreezableOperations.cs
- RegisteredHiddenField.cs
- XmlAttributeCache.cs
- SystemWebSectionGroup.cs
- PostBackOptions.cs
- XmlAtomErrorReader.cs
- TextTreeRootTextBlock.cs
- LineInfo.cs
- HttpsChannelListener.cs
- PreviewPrintController.cs
- CryptoConfig.cs
- HttpException.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- StreamGeometry.cs
- ScriptResourceHandler.cs
- MediaCommands.cs
- CheckableControlBaseAdapter.cs
- LayoutSettings.cs
- ViewEventArgs.cs
- SuppressMergeCheckAttribute.cs
- OletxTransactionHeader.cs
- TypeForwardedFromAttribute.cs
- MILUtilities.cs
- UnitySerializationHolder.cs
- InternalResources.cs
- TableCell.cs
- BindingSourceDesigner.cs
- PropertyPanel.cs
- GlobalProxySelection.cs
- MergeEnumerator.cs
- LoadWorkflowByInstanceKeyCommand.cs
- _NetworkingPerfCounters.cs
- RMEnrollmentPage3.cs
- HtmlInputButton.cs
- SrgsGrammar.cs
- ILGenerator.cs
- ResXResourceSet.cs
- Expression.DebuggerProxy.cs
- FormatConvertedBitmap.cs
- OpenTypeLayoutCache.cs
- StringInfo.cs
- ChannelSinkStacks.cs
- AlignmentXValidation.cs
- KnowledgeBase.cs
- MemoryFailPoint.cs
- XamlToRtfWriter.cs
- FormsAuthenticationUser.cs
- DataSet.cs
- MemoryStream.cs
- TagNameToTypeMapper.cs
- ExpressionsCollectionConverter.cs
- ObjectHandle.cs
- TraceSection.cs