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
- SapiInterop.cs
- LicenseException.cs
- IdleTimeoutMonitor.cs
- DbExpressionRules.cs
- VerticalAlignConverter.cs
- CompletionBookmark.cs
- _SslSessionsCache.cs
- LazyTextWriterCreator.cs
- DoubleLink.cs
- TrackBar.cs
- TextWriterTraceListener.cs
- TranslateTransform.cs
- XmlDataSourceNodeDescriptor.cs
- TextViewSelectionProcessor.cs
- PointIndependentAnimationStorage.cs
- XPathPatternParser.cs
- ProfileService.cs
- WebServiceMethodData.cs
- EditorServiceContext.cs
- WpfGeneratedKnownTypes.cs
- Exceptions.cs
- XmlSchemaInfo.cs
- XmlSerializerFactory.cs
- MediaTimeline.cs
- ToolStripDesignerAvailabilityAttribute.cs
- EntryIndex.cs
- ToolStripLocationCancelEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- TraceInternal.cs
- SynchronizingStream.cs
- LinkAreaEditor.cs
- SolidBrush.cs
- Size3D.cs
- SchemaMerger.cs
- __ConsoleStream.cs
- Encoder.cs
- ContextMenuStrip.cs
- _NTAuthentication.cs
- EventlogProvider.cs
- DataSourceCacheDurationConverter.cs
- CrossSiteScriptingValidation.cs
- XmlText.cs
- ComMethodElement.cs
- KeyProperty.cs
- ReachNamespaceInfo.cs
- Cell.cs
- StreamInfo.cs
- CodeDirectoryCompiler.cs
- BamlResourceDeserializer.cs
- ProfessionalColorTable.cs
- TemplateBamlTreeBuilder.cs
- DoubleAnimationBase.cs
- StyleBamlRecordReader.cs
- CultureTableRecord.cs
- NonParentingControl.cs
- BufferedGraphics.cs
- SqlParameter.cs
- GridView.cs
- Win32KeyboardDevice.cs
- DataGridPagerStyle.cs
- SingleConverter.cs
- GridViewUpdateEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- InputLanguageProfileNotifySink.cs
- SerializationAttributes.cs
- XsltArgumentList.cs
- AssociationSet.cs
- Graphics.cs
- ProfileService.cs
- RecognitionResult.cs
- PeerServiceMessageContracts.cs
- DataTableReader.cs
- PageTheme.cs
- FixedTextBuilder.cs
- DbDataAdapter.cs
- RawUIStateInputReport.cs
- DeviceContext.cs
- ProfileSettingsCollection.cs
- IOThreadTimer.cs
- DataTemplate.cs
- OLEDB_Enum.cs
- DoubleCollectionConverter.cs
- _AutoWebProxyScriptHelper.cs
- Aggregates.cs
- TextTreeRootNode.cs
- GenericEnumConverter.cs
- EdmFunctions.cs
- SchemaComplexType.cs
- XPathAncestorIterator.cs
- ContentPosition.cs
- AggregateNode.cs
- TypeSource.cs
- ScriptingWebServicesSectionGroup.cs
- FormViewUpdateEventArgs.cs
- TrackingMemoryStream.cs
- MenuAdapter.cs
- CompilationLock.cs
- validation.cs
- ListSourceHelper.cs
- AgileSafeNativeMemoryHandle.cs