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
- BasicHttpMessageSecurityElement.cs
- DiscoveryMessageProperty.cs
- RotateTransform.cs
- safex509handles.cs
- ErrorWrapper.cs
- WebPartTracker.cs
- SecureEnvironment.cs
- DataGridAddNewRow.cs
- WaitForChangedResult.cs
- EntityCommandExecutionException.cs
- Timeline.cs
- ExpressionBinding.cs
- RootBuilder.cs
- Hex.cs
- FilterRepeater.cs
- QilGenerator.cs
- IfAction.cs
- Cursor.cs
- DirectoryRedirect.cs
- MessagePartProtectionMode.cs
- KeyProperty.cs
- AssemblyInfo.cs
- SupportsEventValidationAttribute.cs
- Int16AnimationUsingKeyFrames.cs
- DataPagerFieldItem.cs
- DisplayClaim.cs
- ObjectPersistData.cs
- ThemeDictionaryExtension.cs
- UInt64.cs
- DrawListViewColumnHeaderEventArgs.cs
- SecurityKeyIdentifier.cs
- TextModifierScope.cs
- GlobalDataBindingHandler.cs
- AuthenticationService.cs
- DataBoundControlHelper.cs
- SystemBrushes.cs
- ConnectionStringSettings.cs
- RepeaterDesigner.cs
- DatePickerDateValidationErrorEventArgs.cs
- ClientSideQueueItem.cs
- DateTimeValueSerializerContext.cs
- NativeMethods.cs
- DbDeleteCommandTree.cs
- Pens.cs
- CharConverter.cs
- MasterPage.cs
- InstancePersistenceCommand.cs
- MissingManifestResourceException.cs
- TimeSpanFormat.cs
- VectorCollection.cs
- SmiContext.cs
- ListDictionaryInternal.cs
- AsyncResult.cs
- SystemIPAddressInformation.cs
- ObjectRef.cs
- ListViewItemMouseHoverEvent.cs
- PaginationProgressEventArgs.cs
- LineBreak.cs
- ClockController.cs
- Activator.cs
- TreeView.cs
- InternalResources.cs
- WebErrorHandler.cs
- ParseElementCollection.cs
- EpmCustomContentDeSerializer.cs
- PathFigureCollection.cs
- ButtonFieldBase.cs
- ReachBasicContext.cs
- BamlWriter.cs
- NullExtension.cs
- CombinedGeometry.cs
- PageContentCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- DataObjectMethodAttribute.cs
- ParseNumbers.cs
- EncoderParameters.cs
- IntSecurity.cs
- PointKeyFrameCollection.cs
- RawStylusInputCustomDataList.cs
- AutomationPeer.cs
- TreeNodeCollectionEditorDialog.cs
- exports.cs
- Models.cs
- DbConnectionHelper.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- DesignerAdRotatorAdapter.cs
- SqlTypesSchemaImporter.cs
- InProcStateClientManager.cs
- CodeDomSerializationProvider.cs
- Pkcs7Recipient.cs
- Soap11ServerProtocol.cs
- SqlTriggerAttribute.cs
- EncoderReplacementFallback.cs
- HttpResponseHeader.cs
- ButtonColumn.cs
- XpsManager.cs
- XmlWrappingWriter.cs
- ScriptIgnoreAttribute.cs
- ImageCreator.cs
- IndicShape.cs