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
- BuiltInExpr.cs
- AmbientLight.cs
- ComMethodElement.cs
- RegexGroupCollection.cs
- StorageInfo.cs
- HttpPostClientProtocol.cs
- CodeSubDirectory.cs
- HttpCacheVary.cs
- DisposableCollectionWrapper.cs
- ActiveDocumentEvent.cs
- GridViewRowEventArgs.cs
- SiteMembershipCondition.cs
- DataGridViewCellStyleConverter.cs
- SystemInfo.cs
- EntityTemplateUserControl.cs
- HttpProfileGroupBase.cs
- WindowsFormsLinkLabel.cs
- EdgeProfileValidation.cs
- HttpProtocolImporter.cs
- Propagator.cs
- NavigationPropertyEmitter.cs
- RuleProcessor.cs
- Brush.cs
- SqlXmlStorage.cs
- XmlDownloadManager.cs
- OracleParameterBinding.cs
- ResolveNameEventArgs.cs
- UniqueConstraint.cs
- SafeProcessHandle.cs
- ProtocolsSection.cs
- X509ChainPolicy.cs
- TypeUnloadedException.cs
- LassoSelectionBehavior.cs
- SafeNativeMethods.cs
- NCryptNative.cs
- Grant.cs
- DataGridViewControlCollection.cs
- ProcessInfo.cs
- WorkflowServiceAttributes.cs
- ActivityIdHeader.cs
- OutputWindow.cs
- ReadContentAsBinaryHelper.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- PerformanceCounter.cs
- EntryWrittenEventArgs.cs
- UnsafeNativeMethods.cs
- KnownTypesHelper.cs
- NativeMethods.cs
- DataGridViewButtonColumn.cs
- NativeMethods.cs
- GradientBrush.cs
- FlagsAttribute.cs
- XPathParser.cs
- FrameworkRichTextComposition.cs
- CompilerGlobalScopeAttribute.cs
- VerificationAttribute.cs
- ByteStreamBufferedMessageData.cs
- TextBoxAutoCompleteSourceConverter.cs
- OdbcPermission.cs
- ArraySubsetEnumerator.cs
- KeyGesture.cs
- TableItemPatternIdentifiers.cs
- TokenBasedSet.cs
- CodeAssignStatement.cs
- LinearQuaternionKeyFrame.cs
- TraceXPathNavigator.cs
- SectionRecord.cs
- SortFieldComparer.cs
- SignatureToken.cs
- baseaxisquery.cs
- XPathDocumentNavigator.cs
- StylusPointDescription.cs
- InputEventArgs.cs
- ClrProviderManifest.cs
- NullableDecimalSumAggregationOperator.cs
- ExtentJoinTreeNode.cs
- FileChangesMonitor.cs
- XmlSchemaImporter.cs
- MessageEnumerator.cs
- PingReply.cs
- EnumValidator.cs
- Rotation3DAnimationBase.cs
- Stack.cs
- PriorityItem.cs
- OrCondition.cs
- ModelTreeEnumerator.cs
- DateTimeEditor.cs
- HMACSHA256.cs
- RangeValidator.cs
- FlowSwitchLink.cs
- PaperSource.cs
- MenuItemBinding.cs
- DBSchemaRow.cs
- EntitySqlQueryCacheKey.cs
- ReaderContextStackData.cs
- ParseNumbers.cs
- X509Utils.cs
- MappingException.cs
- ConfigUtil.cs
- MobileControlBuilder.cs