Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebParts / PageCatalogPartDesigner.cs / 1 / PageCatalogPartDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls.WebParts { using System; using System.ComponentModel; using System.Web.UI.Design; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class PageCatalogPartDesigner : CatalogPartDesigner { private PageCatalogPart _catalogPart; // PageCatalogPart has no default runtime rendering, so GetDesignTimeHtml() should also // return String.Empty, so we don't get the '[Type "ID"]' rendered in the designer. public override string GetDesignTimeHtml() { if (!(_catalogPart.Parent is CatalogZoneBase)) { return CreateInvalidParentDesignTimeHtml(typeof(CatalogPart), typeof(CatalogZoneBase)); } return String.Empty; } public override void Initialize(IComponent component) { VerifyInitializeArgument(component, typeof(PageCatalogPart)); _catalogPart = (PageCatalogPart)component; base.Initialize(component); } } } // 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
- TextEditorSpelling.cs
- SEHException.cs
- WrapPanel.cs
- ToolStripLabel.cs
- PnrpPeerResolver.cs
- Sentence.cs
- ToolStripDropTargetManager.cs
- NullableDecimalSumAggregationOperator.cs
- SqlCacheDependency.cs
- StyleSelector.cs
- UIElementCollection.cs
- AsnEncodedData.cs
- PasswordPropertyTextAttribute.cs
- ObfuscateAssemblyAttribute.cs
- TextBoxBaseDesigner.cs
- EUCJPEncoding.cs
- DrawListViewSubItemEventArgs.cs
- DataSetViewSchema.cs
- ResolveNameEventArgs.cs
- SubclassTypeValidatorAttribute.cs
- SparseMemoryStream.cs
- RadioButtonStandardAdapter.cs
- SpecialNameAttribute.cs
- GlyphingCache.cs
- CodeBlockBuilder.cs
- HTTPNotFoundHandler.cs
- SliderAutomationPeer.cs
- ButtonBaseAutomationPeer.cs
- InfoCardBaseException.cs
- ProxyWebPartConnectionCollection.cs
- DbConnectionOptions.cs
- DeflateStreamAsyncResult.cs
- RoleProviderPrincipal.cs
- ImportCatalogPart.cs
- ChangeProcessor.cs
- OdbcEnvironmentHandle.cs
- HtmlFormAdapter.cs
- DataServiceHostWrapper.cs
- DbReferenceCollection.cs
- ClrPerspective.cs
- SpecularMaterial.cs
- BoolExpression.cs
- ComboBox.cs
- ParameterToken.cs
- SafeBitVector32.cs
- StylusShape.cs
- MarkupExtensionParser.cs
- SchemaNames.cs
- contentDescriptor.cs
- DataProtection.cs
- __Error.cs
- BasicExpandProvider.cs
- NetDataContractSerializer.cs
- Container.cs
- Vector3DCollectionConverter.cs
- NotifyIcon.cs
- UnsafeNativeMethods.cs
- ActivityLocationReferenceEnvironment.cs
- OpenTypeLayoutCache.cs
- FilteredAttributeCollection.cs
- InkCanvasAutomationPeer.cs
- IndexOutOfRangeException.cs
- ProtectedConfiguration.cs
- TreeNode.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- UnSafeCharBuffer.cs
- Point.cs
- activationcontext.cs
- ListBindingHelper.cs
- DispatcherExceptionEventArgs.cs
- DbReferenceCollection.cs
- HttpResponse.cs
- MetadataItemSerializer.cs
- TextEditorSelection.cs
- FirewallWrapper.cs
- ForeignKeyConstraint.cs
- DirectoryObjectSecurity.cs
- Content.cs
- ParenExpr.cs
- Emitter.cs
- StylusPointProperty.cs
- DecimalConstantAttribute.cs
- DirectoryObjectSecurity.cs
- IndexerNameAttribute.cs
- LZCodec.cs
- ElapsedEventArgs.cs
- InfiniteTimeSpanConverter.cs
- altserialization.cs
- FormattedText.cs
- OracleInternalConnection.cs
- EntityDataSourceDataSelectionPanel.cs
- Scheduling.cs
- EventArgs.cs
- Size3DConverter.cs
- AccessDataSourceView.cs
- SmtpCommands.cs
- MDIClient.cs
- ZoneButton.cs
- ProcessHostServerConfig.cs
- WebPartsPersonalization.cs