Code:
/ FX-1434 / FX-1434 / 1.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
- ActiveXHost.cs
- TemplatedMailWebEventProvider.cs
- ChildrenQuery.cs
- XmlChildEnumerator.cs
- IPipelineRuntime.cs
- HttpCookiesSection.cs
- Pool.cs
- Utils.cs
- Operators.cs
- MemberExpression.cs
- GroupItem.cs
- DynamicRendererThreadManager.cs
- SafeNativeMethodsMilCoreApi.cs
- indexingfiltermarshaler.cs
- entityreference_tresulttype.cs
- XmlILAnnotation.cs
- CodeComment.cs
- AVElementHelper.cs
- EncoderBestFitFallback.cs
- RotationValidation.cs
- UserControlAutomationPeer.cs
- DBCommand.cs
- SelectionEditingBehavior.cs
- XmlUtilWriter.cs
- ErasingStroke.cs
- PolicyLevel.cs
- PropertyEntry.cs
- BaseComponentEditor.cs
- SmtpClient.cs
- SqlDataAdapter.cs
- Crc32.cs
- SQLDateTime.cs
- StdValidatorsAndConverters.cs
- RtfToXamlLexer.cs
- XPathScanner.cs
- ProfessionalColorTable.cs
- UIInitializationException.cs
- DependencyPropertyConverter.cs
- RepeaterCommandEventArgs.cs
- SqlDataSource.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- CompilerTypeWithParams.cs
- RepeatButtonAutomationPeer.cs
- TextContainer.cs
- TextRange.cs
- BitVector32.cs
- FormParameter.cs
- ExtendedPropertyDescriptor.cs
- ParameterReplacerVisitor.cs
- Dynamic.cs
- PageAsyncTaskManager.cs
- TextTreeObjectNode.cs
- DataServiceStreamResponse.cs
- CqlErrorHelper.cs
- InternalCache.cs
- BaseParagraph.cs
- Propagator.JoinPropagator.cs
- PeerTransportSecuritySettings.cs
- Sql8ConformanceChecker.cs
- SslStream.cs
- WindowsHyperlink.cs
- ToolZoneDesigner.cs
- XamlSerializerUtil.cs
- DetailsViewRow.cs
- TextParagraph.cs
- GridViewActionList.cs
- SoapIgnoreAttribute.cs
- HealthMonitoringSection.cs
- CharacterBuffer.cs
- _NegoStream.cs
- SerializationInfoEnumerator.cs
- PostBackTrigger.cs
- CustomError.cs
- ObjectStorage.cs
- VisualTreeUtils.cs
- HybridObjectCache.cs
- TextBoxBaseDesigner.cs
- FontInfo.cs
- ListViewUpdateEventArgs.cs
- EncoderBestFitFallback.cs
- ReliableDuplexSessionChannel.cs
- ObjectConverter.cs
- HttpResponse.cs
- QueryPageSettingsEventArgs.cs
- BindableAttribute.cs
- FigureParagraph.cs
- DataGridTextBox.cs
- AssemblyBuilder.cs
- TextTabProperties.cs
- WebServiceData.cs
- IODescriptionAttribute.cs
- StreamUpgradeInitiator.cs
- HtmlInputHidden.cs
- RoleGroupCollectionEditor.cs
- SortDescription.cs
- XsltConvert.cs
- NetworkInterface.cs
- DependencyProperty.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- LayoutSettings.cs