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
- XmlSignificantWhitespace.cs
- NativeMethods.cs
- CacheAxisQuery.cs
- NullNotAllowedCollection.cs
- UpdateCommand.cs
- ReachFixedDocumentSerializer.cs
- querybuilder.cs
- ProfileSection.cs
- Mutex.cs
- AspProxy.cs
- Identity.cs
- MethodInfo.cs
- XamlDesignerSerializationManager.cs
- ProcessInputEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- safesecurityhelperavalon.cs
- ToolStripItemGlyph.cs
- xmlsaver.cs
- SqlTriggerContext.cs
- DesignerActionVerbItem.cs
- EntityConnectionStringBuilder.cs
- Pen.cs
- RepeaterItemCollection.cs
- CodeDOMUtility.cs
- XhtmlBasicLinkAdapter.cs
- RangeBaseAutomationPeer.cs
- UnmanagedHandle.cs
- PropertyConverter.cs
- PersonalizationProvider.cs
- ComplexLine.cs
- CodeAttributeArgument.cs
- DataControlFieldsEditor.cs
- ItemDragEvent.cs
- URLString.cs
- ValueUtilsSmi.cs
- SQLSingle.cs
- SelectionProviderWrapper.cs
- InvalidContentTypeException.cs
- _AutoWebProxyScriptHelper.cs
- Activity.cs
- SmtpMail.cs
- XmlBinaryReader.cs
- HijriCalendar.cs
- ListBindingHelper.cs
- AnonymousIdentificationModule.cs
- Rect3D.cs
- XmlMapping.cs
- TargetException.cs
- ListViewGroup.cs
- XPathDocumentIterator.cs
- EventSinkActivity.cs
- TogglePattern.cs
- SystemThemeKey.cs
- BindingCompleteEventArgs.cs
- SocketAddress.cs
- TextTreeInsertUndoUnit.cs
- Configuration.cs
- StateRuntime.cs
- UnsafeNativeMethods.cs
- XsltLoader.cs
- SmiMetaDataProperty.cs
- HostExecutionContextManager.cs
- ModulesEntry.cs
- TerminatorSinks.cs
- VisualBasic.cs
- XmlEntityReference.cs
- HttpCachePolicyBase.cs
- BackgroundWorker.cs
- SqlConnectionHelper.cs
- CalendarDesigner.cs
- ParameterCollectionEditor.cs
- CommonDialog.cs
- Binding.cs
- WindowsListViewScroll.cs
- ScriptingAuthenticationServiceSection.cs
- RequiredAttributeAttribute.cs
- EpmHelper.cs
- SQLInt16.cs
- FragmentQuery.cs
- FrameworkElementFactory.cs
- Registry.cs
- View.cs
- IPipelineRuntime.cs
- ImmComposition.cs
- AstTree.cs
- ArgumentOutOfRangeException.cs
- HttpCapabilitiesBase.cs
- UriParserTemplates.cs
- precedingquery.cs
- _AutoWebProxyScriptHelper.cs
- DoubleLinkList.cs
- CombinedGeometry.cs
- Switch.cs
- Listbox.cs
- PathNode.cs
- EntityDataSourceMemberPath.cs
- OleServicesContext.cs
- MetadataUtilsSmi.cs
- TextRangeAdaptor.cs
- TextCompositionEventArgs.cs