Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ProxyWebPartManager.cs / 1305376 / ProxyWebPartManager.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Diagnostics; using System.Web.UI; [ Bindable(false), Designer("System.Web.UI.Design.WebControls.WebParts.ProxyWebPartManagerDesigner, " + AssemblyRef.SystemDesign), NonVisualControl(), ParseChildren(true), PersistChildren(false) ] public class ProxyWebPartManager : Control { private ProxyWebPartConnectionCollection _staticConnections; [ EditorBrowsable(EditorBrowsableState.Never), ] public override string ClientID { get { return base.ClientID; } } [ EditorBrowsable(EditorBrowsableState.Never), ] public override ControlCollection Controls { get { return base.Controls; } } [ DefaultValue(false), EditorBrowsable(EditorBrowsableState.Never), ] public override bool EnableTheming { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } } [ DefaultValue(""), EditorBrowsable(EditorBrowsableState.Never), ] public override string SkinID { get { return String.Empty; } set { throw new NotSupportedException(SR.GetString(SR.NoThemingSupport, this.GetType().Name)); } } [ DefaultValue(null), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), EditorBrowsable(EditorBrowsableState.Never), MergableProperty(false), PersistenceMode(PersistenceMode.InnerProperty), WebCategory("Behavior"), WebSysDescription(SR.WebPartManager_StaticConnections), ] public ProxyWebPartConnectionCollection StaticConnections { get { if (_staticConnections == null) { _staticConnections = new ProxyWebPartConnectionCollection(); } return _staticConnections; } } [ Browsable(false), DefaultValue(false), EditorBrowsable(EditorBrowsableState.Never), ] public override bool Visible { get { return false; } set { throw new NotSupportedException(SR.GetString(SR.ControlNonVisual, this.GetType().Name)); } } protected override ControlCollection CreateControlCollection() { return new EmptyControlCollection(this); } [ EditorBrowsable(EditorBrowsableState.Never), ] public override void Focus() { throw new NotSupportedException(SR.GetString(SR.NoFocusSupport, this.GetType().Name)); } protected internal override void OnInit(EventArgs e) { base.OnInit(e); Page page = Page; Debug.Assert(page != null); if ((page != null) && !DesignMode) { WebPartManager webPartManager = WebPartManager.GetCurrentWebPartManager(page); if (webPartManager == null) { throw new InvalidOperationException(SR.GetString(SR.WebPartManagerRequired)); } StaticConnections.SetWebPartManager(webPartManager); } } } } // 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
- MatrixUtil.cs
- DataAdapter.cs
- DataBindingExpressionBuilder.cs
- BindingSource.cs
- ThreadExceptionEvent.cs
- AddInSegmentDirectoryNotFoundException.cs
- BackgroundFormatInfo.cs
- DataRowChangeEvent.cs
- EventMappingSettings.cs
- ControlPaint.cs
- LoadGrammarCompletedEventArgs.cs
- SchemaMapping.cs
- EntityConnectionStringBuilder.cs
- WindowsGraphics.cs
- OutputBuffer.cs
- AlgoModule.cs
- DbBuffer.cs
- ViewManager.cs
- GlobalizationSection.cs
- TargetControlTypeCache.cs
- WebBrowserBase.cs
- CipherData.cs
- TextEditorDragDrop.cs
- XamlSerializationHelper.cs
- CodeRemoveEventStatement.cs
- Form.cs
- OdbcFactory.cs
- Enum.cs
- DeploymentSection.cs
- MailAddress.cs
- Renderer.cs
- XamlStyleSerializer.cs
- TreeBuilderBamlTranslator.cs
- WindowCollection.cs
- ToolStripItemRenderEventArgs.cs
- ConfigurationStrings.cs
- XmlNodeChangedEventManager.cs
- ProvidersHelper.cs
- DiagnosticStrings.cs
- OpenTypeLayout.cs
- SafeNativeMethods.cs
- DesignerDataConnection.cs
- ServiceHttpHandlerFactory.cs
- TemplatePagerField.cs
- IntellisenseTextBox.cs
- DataGridCellClipboardEventArgs.cs
- WSTransactionSection.cs
- BrowsableAttribute.cs
- DataControlLinkButton.cs
- WindowShowOrOpenTracker.cs
- QilPatternVisitor.cs
- AggregateNode.cs
- ImageListStreamer.cs
- TcpTransportBindingElement.cs
- AccessDataSource.cs
- ProtocolsConfigurationEntry.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- DataView.cs
- FaultHandlingFilter.cs
- HexParser.cs
- DrawingGroup.cs
- QilLoop.cs
- CharConverter.cs
- CompilerErrorCollection.cs
- MarshalDirectiveException.cs
- CodePrimitiveExpression.cs
- ConstraintStruct.cs
- _LoggingObject.cs
- PeerCollaborationPermission.cs
- MimeTypeAttribute.cs
- SafeNativeMethods.cs
- BuildDependencySet.cs
- MonitorWrapper.cs
- ResourcesGenerator.cs
- GridViewPageEventArgs.cs
- CultureInfoConverter.cs
- WebPartManager.cs
- BitmapEffectDrawingContextWalker.cs
- PeekCompletedEventArgs.cs
- ComponentConverter.cs
- ExtractedStateEntry.cs
- DataControlFieldCollection.cs
- MD5CryptoServiceProvider.cs
- ColumnMapTranslator.cs
- ToolStripRenderEventArgs.cs
- WebDisplayNameAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- TranslateTransform.cs
- RankException.cs
- Tokenizer.cs
- SqlCacheDependencyDatabaseCollection.cs
- StrongNameUtility.cs
- DbProviderFactories.cs
- ScriptControlDescriptor.cs
- FileLoadException.cs
- SqlFileStream.cs
- ParameterElementCollection.cs
- MultiByteCodec.cs
- TdsValueSetter.cs
- AtomEntry.cs