Code:
/ DotNET / DotNET / 8.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
- HttpCachePolicy.cs
- FixUpCollection.cs
- Calendar.cs
- CompatibleIComparer.cs
- ModifierKeysConverter.cs
- DrawingGroup.cs
- XmlTextEncoder.cs
- CacheMode.cs
- WindowsSlider.cs
- CroppedBitmap.cs
- SqlConnectionHelper.cs
- RefExpr.cs
- PocoPropertyAccessorStrategy.cs
- BoolExpression.cs
- ProcessModelInfo.cs
- RuntimeCompatibilityAttribute.cs
- XmlArrayItemAttribute.cs
- DbResourceAllocator.cs
- WorkflowHostingEndpoint.cs
- StyleCollection.cs
- DesignSurfaceCollection.cs
- ScrollBarAutomationPeer.cs
- Hyperlink.cs
- BindStream.cs
- XmlUtil.cs
- ByteStream.cs
- TimeSpanValidator.cs
- HttpRuntime.cs
- SQLDoubleStorage.cs
- DataSourceViewSchemaConverter.cs
- Random.cs
- xdrvalidator.cs
- ToolStripSeparator.cs
- MultiSelector.cs
- MarkupCompilePass2.cs
- DataGridViewImageCell.cs
- ObjectDataSourceView.cs
- AuthenticationModulesSection.cs
- FileSecurity.cs
- As.cs
- XMLDiffLoader.cs
- NamedPipeConnectionPoolSettingsElement.cs
- XmlSchemaSubstitutionGroup.cs
- BufferedStream.cs
- Boolean.cs
- InstanceDataCollectionCollection.cs
- DataReaderContainer.cs
- MeshGeometry3D.cs
- AsyncDataRequest.cs
- KnownIds.cs
- InternalControlCollection.cs
- DebuggerAttributes.cs
- RegionData.cs
- X509DefaultServiceCertificateElement.cs
- SectionInformation.cs
- Image.cs
- LateBoundBitmapDecoder.cs
- GetIndexBinder.cs
- AutomationElement.cs
- SqlSelectStatement.cs
- DataError.cs
- ScriptResourceDefinition.cs
- ZipIOLocalFileHeader.cs
- HttpProfileGroupBase.cs
- FormsAuthentication.cs
- SchemaCollectionCompiler.cs
- RegexRunner.cs
- PolyBezierSegmentFigureLogic.cs
- AuthenticationManager.cs
- ErrorHandler.cs
- FunctionDetailsReader.cs
- HttpSessionStateBase.cs
- HelpOperationInvoker.cs
- FreeIndexList.cs
- Polygon.cs
- SoapFault.cs
- ApplicationHost.cs
- xdrvalidator.cs
- CmsInterop.cs
- CDSCollectionETWBCLProvider.cs
- ExplicitDiscriminatorMap.cs
- CommonProperties.cs
- FormsAuthenticationEventArgs.cs
- InternalCompensate.cs
- FigureParagraph.cs
- EntityDataSourceView.cs
- TextElementAutomationPeer.cs
- DbDataSourceEnumerator.cs
- EditorZoneAutoFormat.cs
- Helper.cs
- SizeValueSerializer.cs
- ComboBoxAutomationPeer.cs
- ColorContextHelper.cs
- StackOverflowException.cs
- WebBrowsableAttribute.cs
- Html32TextWriter.cs
- VirtualizedCellInfoCollection.cs
- dbenumerator.cs
- SchemaNotation.cs
- MsmqIntegrationInputChannel.cs