Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / PlaceHolder.cs / 1 / PlaceHolder.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Web.UI;
using System.Security.Permissions;
///
/// Interacts with the parser to build a control.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class PlaceHolderControlBuilder : ControlBuilder {
///
///
/// Specifies whether white space literals are allowed.
///
public override bool AllowWhitespaceLiterals() {
return false;
}
}
// The reason we define this empty override in the WebControls namespace is
// to expose it as a control that can be used on a page (ASURT 51116)
// E.g.
///
/// [To be supplied.]
///
[
ControlBuilderAttribute(typeof(PlaceHolderControlBuilder))
]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class PlaceHolder : Control {
///
/// Gets and sets a value indicating whether theme is enabled.
///
[
Browsable(true)
]
public override bool EnableTheming {
get {
return base.EnableTheming;
}
set {
base.EnableTheming = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Web.UI;
using System.Security.Permissions;
///
/// Interacts with the parser to build a control.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class PlaceHolderControlBuilder : ControlBuilder {
///
///
/// Specifies whether white space literals are allowed.
///
public override bool AllowWhitespaceLiterals() {
return false;
}
}
// The reason we define this empty override in the WebControls namespace is
// to expose it as a control that can be used on a page (ASURT 51116)
// E.g.
///
/// [To be supplied.]
///
[
ControlBuilderAttribute(typeof(PlaceHolderControlBuilder))
]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class PlaceHolder : Control {
///
/// Gets and sets a value indicating whether theme is enabled.
///
[
Browsable(true)
]
public override bool EnableTheming {
get {
return base.EnableTheming;
}
set {
base.EnableTheming = value;
}
}
}
}
// 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
- TextServicesDisplayAttribute.cs
- VisualProxy.cs
- CatalogPart.cs
- PreloadedPackages.cs
- XmlSchemaCollection.cs
- AttributeInfo.cs
- MaterializeFromAtom.cs
- FreezableDefaultValueFactory.cs
- C14NUtil.cs
- Setter.cs
- KeyBinding.cs
- WebPartVerbsEventArgs.cs
- mil_sdk_version.cs
- Viewport2DVisual3D.cs
- LateBoundBitmapDecoder.cs
- HotSpotCollection.cs
- EmptyEnumerable.cs
- HtmlInputImage.cs
- ErrorHandlerFaultInfo.cs
- HashLookup.cs
- DbMetaDataFactory.cs
- CodeAttributeArgument.cs
- VisualTreeUtils.cs
- HtmlInputControl.cs
- SoapObjectWriter.cs
- ActiveXHelper.cs
- Size3DConverter.cs
- StylusTip.cs
- ConnectionStringEditor.cs
- WebPartZoneBase.cs
- Assembly.cs
- DataGridViewButtonColumn.cs
- Camera.cs
- DictionaryManager.cs
- Point3DCollection.cs
- NonDualMessageSecurityOverHttpElement.cs
- IPEndPointCollection.cs
- ValidationRuleCollection.cs
- ContractUtils.cs
- CustomGrammar.cs
- XPathNodeList.cs
- Visual3DCollection.cs
- Application.cs
- BaseTemplateBuildProvider.cs
- RegisteredScript.cs
- AudioFileOut.cs
- PeerObject.cs
- AssemblyCache.cs
- ClosableStream.cs
- ObjectDataSourceSelectingEventArgs.cs
- GenericPrincipal.cs
- MessageQueueException.cs
- TextMarkerSource.cs
- SQLByteStorage.cs
- ListMarkerSourceInfo.cs
- TemplateEditingService.cs
- ModuleConfigurationInfo.cs
- ListViewTableRow.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- GridView.cs
- Keywords.cs
- MouseButtonEventArgs.cs
- FormViewPageEventArgs.cs
- Gdiplus.cs
- WebEvents.cs
- MSAAEventDispatcher.cs
- CompleteWizardStep.cs
- ConditionalWeakTable.cs
- DbInsertCommandTree.cs
- SvcMapFile.cs
- AstNode.cs
- SapiRecoContext.cs
- HandlerMappingMemo.cs
- SizeConverter.cs
- InvalidAsynchronousStateException.cs
- WizardForm.cs
- PermissionRequestEvidence.cs
- DashStyles.cs
- Nodes.cs
- QilFactory.cs
- SqlException.cs
- FullTextState.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FileVersion.cs
- ReversePositionQuery.cs
- DataTableReaderListener.cs
- XPathDocument.cs
- DataSysAttribute.cs
- DataGridViewAccessibleObject.cs
- ToolStrip.cs
- ComboBox.cs
- Timer.cs
- OracleNumber.cs
- ScriptHandlerFactory.cs
- TreeNodeSelectionProcessor.cs
- HttpFileCollectionWrapper.cs
- HttpWriter.cs
- InstancePersistence.cs
- AudioDeviceOut.cs
- TypeForwardedToAttribute.cs