Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / ZoneButton.cs / 1 / 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(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DNS.cs
- ProfileProvider.cs
- ViewRendering.cs
- SimpleBitVector32.cs
- SiteMapNode.cs
- StylusEventArgs.cs
- ResXFileRef.cs
- RequestSecurityTokenResponse.cs
- SignatureDescription.cs
- OdbcCommandBuilder.cs
- ProgramPublisher.cs
- DtrList.cs
- XmlUrlEditor.cs
- DataSourceControl.cs
- InputLanguage.cs
- DataFieldCollectionEditor.cs
- SystemIdentity.cs
- AuthenticatingEventArgs.cs
- DataBoundControlAdapter.cs
- DataGridViewColumnEventArgs.cs
- ZipIOExtraFieldElement.cs
- Speller.cs
- DecimalAnimationUsingKeyFrames.cs
- recordstatefactory.cs
- CharEnumerator.cs
- ProvideValueServiceProvider.cs
- RoutedEventValueSerializer.cs
- FileNotFoundException.cs
- IisTraceListener.cs
- XmlAnyElementAttribute.cs
- SqlFormatter.cs
- ShaderEffect.cs
- JobPageOrder.cs
- LockedActivityGlyph.cs
- TextProperties.cs
- wgx_sdk_version.cs
- IsolatedStorage.cs
- DependencyObjectCodeDomSerializer.cs
- DomainLiteralReader.cs
- SqlProfileProvider.cs
- Matrix3D.cs
- SimpleType.cs
- ZipIOCentralDirectoryFileHeader.cs
- PostBackTrigger.cs
- CellCreator.cs
- cookieexception.cs
- RootNamespaceAttribute.cs
- GroupBox.cs
- Expression.DebuggerProxy.cs
- WebPartZoneDesigner.cs
- uribuilder.cs
- TriggerAction.cs
- RSACryptoServiceProvider.cs
- UrlMapping.cs
- RoleServiceManager.cs
- DiscoveryMessageSequenceCD1.cs
- Mapping.cs
- PKCS1MaskGenerationMethod.cs
- HostProtectionException.cs
- ParallelTimeline.cs
- SocketAddress.cs
- VisualStates.cs
- Boolean.cs
- ByteConverter.cs
- XmlTypeAttribute.cs
- CodeAssignStatement.cs
- TextElementEnumerator.cs
- MenuAutomationPeer.cs
- AnnotationHighlightLayer.cs
- GroupLabel.cs
- ContextMenuService.cs
- OdbcEnvironment.cs
- DataRecordInternal.cs
- ExpressionVisitorHelpers.cs
- ManifestBasedResourceGroveler.cs
- DatagramAdapter.cs
- SvcFileManager.cs
- ResourceDisplayNameAttribute.cs
- PageCatalogPart.cs
- WorkflowDesignerColors.cs
- DataGridViewTopRowAccessibleObject.cs
- HandledEventArgs.cs
- XmlSchemaObject.cs
- GuidelineCollection.cs
- BinaryConverter.cs
- WinInetCache.cs
- DynamicControlParameter.cs
- EventRouteFactory.cs
- OracleConnectionStringBuilder.cs
- GroupPartitionExpr.cs
- AppModelKnownContentFactory.cs
- AnnotationDocumentPaginator.cs
- AuthenticationModuleElementCollection.cs
- TableCell.cs
- FaultFormatter.cs
- CredentialCache.cs
- ReflectPropertyDescriptor.cs
- RelationalExpressions.cs
- WebInvokeAttribute.cs
- RemotingAttributes.cs