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
- PropertyEmitter.cs
- SqlInternalConnectionTds.cs
- PerformanceCountersElement.cs
- ServiceXNameTypeConverter.cs
- VectorAnimation.cs
- DbModificationClause.cs
- IgnoreSectionHandler.cs
- SoapProtocolImporter.cs
- FontStyle.cs
- PermissionListSet.cs
- HtmlTernaryTree.cs
- CategoryGridEntry.cs
- Merger.cs
- DelimitedListTraceListener.cs
- ToolStripPanel.cs
- EditingScope.cs
- DoubleAnimation.cs
- Message.cs
- ScalarType.cs
- String.cs
- EventListener.cs
- LicenseContext.cs
- WindowsGraphicsWrapper.cs
- RIPEMD160Managed.cs
- FilteredDataSetHelper.cs
- DrawingAttributeSerializer.cs
- DataGridTableStyleMappingNameEditor.cs
- ControlParameter.cs
- SerializationStore.cs
- SaveFileDialog.cs
- TextEndOfParagraph.cs
- CalendarButtonAutomationPeer.cs
- XmlSequenceWriter.cs
- TimelineCollection.cs
- FixedDocumentPaginator.cs
- TableAdapterManagerNameHandler.cs
- ToolStripContentPanel.cs
- URLMembershipCondition.cs
- WindowsBrush.cs
- WindowsAuthenticationEventArgs.cs
- RelatedImageListAttribute.cs
- SizeAnimation.cs
- DesignerObjectListAdapter.cs
- DataBindEngine.cs
- FormViewRow.cs
- DelayedRegex.cs
- PasswordDeriveBytes.cs
- FontFamilyValueSerializer.cs
- ThreadSafeList.cs
- SafeLocalMemHandle.cs
- InputLanguageProfileNotifySink.cs
- OdbcConnectionHandle.cs
- XmlSchemaInferenceException.cs
- BitmapEffectInput.cs
- WrapperEqualityComparer.cs
- FilteredAttributeCollection.cs
- SchemaCollectionCompiler.cs
- DateTimeConverter2.cs
- RightsManagementPermission.cs
- ListSortDescriptionCollection.cs
- TrackingProfile.cs
- CommonObjectSecurity.cs
- XmlMtomWriter.cs
- DataGridViewCellStyleBuilderDialog.cs
- FatalException.cs
- Authorization.cs
- ControlAdapter.cs
- CacheVirtualItemsEvent.cs
- AuthenticationModulesSection.cs
- EastAsianLunisolarCalendar.cs
- CommonObjectSecurity.cs
- OLEDB_Util.cs
- XmlSerializerAssemblyAttribute.cs
- AssemblyGen.cs
- BaseParagraph.cs
- Pointer.cs
- RotateTransform3D.cs
- WhitespaceRuleLookup.cs
- nulltextnavigator.cs
- WebResponse.cs
- DbDataAdapter.cs
- FileCodeGroup.cs
- FixedStringLookup.cs
- PrintDialog.cs
- NameValueConfigurationElement.cs
- BinaryObjectReader.cs
- OrderablePartitioner.cs
- DoWorkEventArgs.cs
- ActivityScheduledQuery.cs
- SelectionWordBreaker.cs
- ToolStripLocationCancelEventArgs.cs
- shaperfactory.cs
- Tablet.cs
- DataObjectAttribute.cs
- TableSectionStyle.cs
- WindowsAltTab.cs
- ToolStripArrowRenderEventArgs.cs
- File.cs
- CompositeDataBoundControl.cs
- ReadOnlyCollectionBuilder.cs