Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- LinkLabelLinkClickedEvent.cs
- PublisherIdentityPermission.cs
- LoginName.cs
- Mapping.cs
- CommandSet.cs
- NumberSubstitution.cs
- TreeViewAutomationPeer.cs
- PtsHelper.cs
- UriScheme.cs
- ElementAtQueryOperator.cs
- ManualResetEvent.cs
- TdsEnums.cs
- DefaultTextStore.cs
- Oid.cs
- ScriptingRoleServiceSection.cs
- XmlStreamStore.cs
- ToolStripSettings.cs
- UInt32Converter.cs
- TransformerInfoCollection.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- TextPenaltyModule.cs
- MessageEncoder.cs
- TraceListeners.cs
- SafeRightsManagementQueryHandle.cs
- SynchronizationHandlesCodeDomSerializer.cs
- PhysicalOps.cs
- ThreadAbortException.cs
- EntityClassGenerator.cs
- Lookup.cs
- PanelContainerDesigner.cs
- SqlTransaction.cs
- PreviewControlDesigner.cs
- PinnedBufferMemoryStream.cs
- NotImplementedException.cs
- IndividualDeviceConfig.cs
- MsmqProcessProtocolHandler.cs
- WeakHashtable.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataPagerCommandEventArgs.cs
- ResourceReader.cs
- WmfPlaceableFileHeader.cs
- TCEAdapterGenerator.cs
- ContractDescription.cs
- Variable.cs
- EventLogInternal.cs
- BaseCodePageEncoding.cs
- RuntimeConfigLKG.cs
- AddInProcess.cs
- HostedTransportConfigurationBase.cs
- VideoDrawing.cs
- JournalEntry.cs
- HostingEnvironment.cs
- RegexStringValidator.cs
- DataGridViewColumnEventArgs.cs
- DateTimeFormatInfoScanner.cs
- FormDocumentDesigner.cs
- MediaTimeline.cs
- WebPartMenu.cs
- CustomErrorCollection.cs
- TemplatedEditableDesignerRegion.cs
- EpmCustomContentDeSerializer.cs
- ColumnTypeConverter.cs
- DEREncoding.cs
- AttributeUsageAttribute.cs
- OptimalBreakSession.cs
- ToolStripRenderEventArgs.cs
- HwndMouseInputProvider.cs
- BigInt.cs
- FixedSOMGroup.cs
- WmlFormAdapter.cs
- WorkflowClientDeliverMessageWrapper.cs
- BitmapMetadataEnumerator.cs
- DataGridAddNewRow.cs
- CodeActivity.cs
- ConfigurationValidatorBase.cs
- Span.cs
- PartialCachingAttribute.cs
- SqlUdtInfo.cs
- EventMap.cs
- ShaderEffect.cs
- XmlSchemaInferenceException.cs
- DirectionalLight.cs
- ChtmlTextBoxAdapter.cs
- BinHexEncoder.cs
- ParentQuery.cs
- CompilerResults.cs
- SchemaMapping.cs
- AttributeUsageAttribute.cs
- CacheForPrimitiveTypes.cs
- PackageDocument.cs
- FixedTextPointer.cs
- SystemParameters.cs
- TrackingStringDictionary.cs
- RuntimeConfig.cs
- ElementAction.cs
- Path.cs
- ServerValidateEventArgs.cs
- SqlTransaction.cs
- GorillaCodec.cs
- ProfileSection.cs