Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / ZoneButton.cs / 3 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SymLanguageVendor.cs
- PolyBezierSegmentFigureLogic.cs
- FixedHyperLink.cs
- NestPullup.cs
- BooleanFunctions.cs
- MailMessageEventArgs.cs
- BulletChrome.cs
- StreamingContext.cs
- _LoggingObject.cs
- ProcessThread.cs
- UrlAuthFailedErrorFormatter.cs
- CriticalHandle.cs
- FlagsAttribute.cs
- Expression.cs
- DeploymentExceptionMapper.cs
- CommonDialog.cs
- InitializerFacet.cs
- ZeroOpNode.cs
- TableAdapterManagerHelper.cs
- DataSysAttribute.cs
- CatalogPart.cs
- LinkedResourceCollection.cs
- BasicCellRelation.cs
- BorderGapMaskConverter.cs
- DataGridRelationshipRow.cs
- ObjectSecurity.cs
- Cell.cs
- RoutedPropertyChangedEventArgs.cs
- VersionValidator.cs
- DiscoveryReferences.cs
- InputLanguageEventArgs.cs
- DataGridViewComboBoxCell.cs
- AppDomainProtocolHandler.cs
- AsyncOperationManager.cs
- ContourSegment.cs
- DataGridItemEventArgs.cs
- CellParaClient.cs
- ExternalDataExchangeService.cs
- CodePageUtils.cs
- SecurityTokenValidationException.cs
- GPRECTF.cs
- Nodes.cs
- StreamWithDictionary.cs
- NavigatorInput.cs
- CombinedGeometry.cs
- FieldAccessException.cs
- EntityContainerEntitySet.cs
- PointLight.cs
- BindableTemplateBuilder.cs
- Context.cs
- GZipDecoder.cs
- MailDefinition.cs
- BitmapEditor.cs
- RelatedPropertyManager.cs
- BamlLocalizableResource.cs
- SqlNotificationRequest.cs
- Label.cs
- basenumberconverter.cs
- SplitterPanelDesigner.cs
- ImageButton.cs
- ObjectHandle.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- AppSecurityManager.cs
- HttpApplicationFactory.cs
- GenerateScriptTypeAttribute.cs
- KeyedPriorityQueue.cs
- updatecommandorderer.cs
- UpdateProgress.cs
- MaterializeFromAtom.cs
- NetworkInformationPermission.cs
- XamlGridLengthSerializer.cs
- XomlCompilerResults.cs
- OleDbException.cs
- DataTemplate.cs
- SectionXmlInfo.cs
- X509Extension.cs
- CodeArrayCreateExpression.cs
- XamlTreeBuilderBamlRecordWriter.cs
- MsmqQueue.cs
- ProtectedUri.cs
- Hash.cs
- CheckBoxPopupAdapter.cs
- DataGridTableCollection.cs
- FieldToken.cs
- ConfigurationValue.cs
- ClusterRegistryConfigurationProvider.cs
- PassportAuthenticationModule.cs
- DispatcherFrame.cs
- Propagator.Evaluator.cs
- ConfigurationConverterBase.cs
- UidPropertyAttribute.cs
- ResXResourceReader.cs
- ProviderSettings.cs
- WebBrowserNavigatedEventHandler.cs
- DataGridViewRow.cs
- GlobalProxySelection.cs
- PrePostDescendentsWalker.cs
- DynamicExpression.cs
- Journal.cs
- SocketInformation.cs