Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / ProxyWebPartManager.cs / 1 / 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.Security.Permissions;
using System.Web.UI;
[
Bindable(false),
Designer("System.Web.UI.Design.WebControls.WebParts.ProxyWebPartManagerDesigner, " + AssemblyRef.SystemDesign),
NonVisualControl(),
ParseChildren(true),
PersistChildren(false)
]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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);
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcCommand.cs
- StronglyTypedResourceBuilder.cs
- AssemblyCollection.cs
- EncodingTable.cs
- HyperLink.cs
- ISAPIRuntime.cs
- CounterCreationDataCollection.cs
- CounterSampleCalculator.cs
- DataShape.cs
- Renderer.cs
- EpmCustomContentWriterNodeData.cs
- MimeTypeMapper.cs
- SqlCachedBuffer.cs
- OrderedDictionaryStateHelper.cs
- TrustSection.cs
- ResourceExpression.cs
- BrushMappingModeValidation.cs
- DependencyPropertyKind.cs
- WebPartManager.cs
- PeerName.cs
- DBConnectionString.cs
- HttpContextServiceHost.cs
- WebScriptClientGenerator.cs
- CustomTypeDescriptor.cs
- HTTPNotFoundHandler.cs
- ReadOnlyDataSourceView.cs
- FrameworkElement.cs
- PropertyRecord.cs
- XsltQilFactory.cs
- HttpRequestWrapper.cs
- LookupBindingPropertiesAttribute.cs
- IndentTextWriter.cs
- PrintPageEvent.cs
- EntityDataSourceChangingEventArgs.cs
- WindowsTreeView.cs
- Panel.cs
- NotificationContext.cs
- Rules.cs
- AttributeCollection.cs
- BatchServiceHost.cs
- ListViewSelectEventArgs.cs
- PrinterUnitConvert.cs
- OraclePermissionAttribute.cs
- SettingsAttributes.cs
- ManagementObjectSearcher.cs
- StructuredTypeEmitter.cs
- DataMemberListEditor.cs
- dataSvcMapFileLoader.cs
- ResourcesChangeInfo.cs
- MimeMultiPart.cs
- ParserHooks.cs
- EditorBrowsableAttribute.cs
- SynchronizationContext.cs
- BinaryObjectInfo.cs
- Permission.cs
- SpeechDetectedEventArgs.cs
- ConnectionStringSettingsCollection.cs
- ExpressionTextBoxAutomationPeer.cs
- Pens.cs
- Ipv6Element.cs
- SiteMapPath.cs
- GenericWebPart.cs
- SafeHandle.cs
- PrtCap_Public_Simple.cs
- CreateUserWizard.cs
- SafeNativeMethods.cs
- PropertyGridCommands.cs
- WithParamAction.cs
- QuaternionRotation3D.cs
- figurelength.cs
- OpenFileDialog.cs
- MapPathBasedVirtualPathProvider.cs
- XMLSchema.cs
- _ConnectStream.cs
- Unit.cs
- SplayTreeNode.cs
- PersistenceException.cs
- DataRecordInternal.cs
- LinqDataView.cs
- SqlProvider.cs
- WindowsSolidBrush.cs
- KeyedCollection.cs
- PolygonHotSpot.cs
- XmlAutoDetectWriter.cs
- ImageAttributes.cs
- Selector.cs
- RewritingPass.cs
- TraceListener.cs
- PageThemeBuildProvider.cs
- CodeRemoveEventStatement.cs
- DbModificationClause.cs
- ConfigurationLockCollection.cs
- FontNamesConverter.cs
- LayoutDump.cs
- DataGridViewMethods.cs
- StandardRuntimeEnumValidatorAttribute.cs
- WebPartActionVerb.cs
- recordstatefactory.cs
- ServiceOperationParameter.cs
- BitSet.cs