Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / WebControlAdapter.cs / 1 / WebControlAdapter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.Adapters {
using System;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.Adapters;
// Provides adaptive rendering for a web control.
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class WebControlAdapter : ControlAdapter {
// Returns a strongly typed control instance.
protected new WebControl Control {
get {
return (WebControl)base.Control;
}
}
/// Indicates whether the associated WebControl is enabled
/// taking into account the cascading effect of the enabled property.
protected bool IsEnabled {
get {
return Control.IsEnabled;
}
}
protected virtual void RenderBeginTag(HtmlTextWriter writer) {
Control.RenderBeginTag(writer);
}
protected virtual void RenderEndTag(HtmlTextWriter writer) {
Control.RenderEndTag(writer);
}
protected virtual void RenderContents(HtmlTextWriter writer) {
Control.RenderContents(writer);
}
protected internal override void Render(HtmlTextWriter writer) {
RenderBeginTag(writer);
RenderContents(writer);
RenderEndTag(writer);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.Adapters {
using System;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using System.Web.UI.Adapters;
// Provides adaptive rendering for a web control.
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class WebControlAdapter : ControlAdapter {
// Returns a strongly typed control instance.
protected new WebControl Control {
get {
return (WebControl)base.Control;
}
}
/// Indicates whether the associated WebControl is enabled
/// taking into account the cascading effect of the enabled property.
protected bool IsEnabled {
get {
return Control.IsEnabled;
}
}
protected virtual void RenderBeginTag(HtmlTextWriter writer) {
Control.RenderBeginTag(writer);
}
protected virtual void RenderEndTag(HtmlTextWriter writer) {
Control.RenderEndTag(writer);
}
protected virtual void RenderContents(HtmlTextWriter writer) {
Control.RenderContents(writer);
}
protected internal override void Render(HtmlTextWriter writer) {
RenderBeginTag(writer);
RenderContents(writer);
RenderEndTag(writer);
}
}
}
// 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
- BulletedList.cs
- ConfigurationSettings.cs
- DbProviderServices.cs
- WebSysDefaultValueAttribute.cs
- StructuralComparisons.cs
- JapaneseCalendar.cs
- DefaultWorkflowLoaderService.cs
- XPathBuilder.cs
- GroupBoxRenderer.cs
- StrongNameUtility.cs
- TimeSpanValidatorAttribute.cs
- GetLastErrorDetailsRequest.cs
- XPathParser.cs
- PerspectiveCamera.cs
- SectionVisual.cs
- PrinterResolution.cs
- OleDbSchemaGuid.cs
- InlinedAggregationOperator.cs
- ZoneIdentityPermission.cs
- XmlUrlResolver.cs
- CryptoApi.cs
- ExtenderHelpers.cs
- SelectionPatternIdentifiers.cs
- sqlstateclientmanager.cs
- DataGridTable.cs
- XmlSiteMapProvider.cs
- ZoneMembershipCondition.cs
- TimeoutValidationAttribute.cs
- FixedFlowMap.cs
- BufferModesCollection.cs
- SystemIPv6InterfaceProperties.cs
- GregorianCalendar.cs
- QualifiedCellIdBoolean.cs
- AnnotationResourceChangedEventArgs.cs
- HostedHttpContext.cs
- SettingsBindableAttribute.cs
- Quaternion.cs
- ButtonChrome.cs
- Transform.cs
- WindowsStatusBar.cs
- ZipPackagePart.cs
- X509IssuerSerialKeyIdentifierClause.cs
- EntityParameter.cs
- Attributes.cs
- LicenseProviderAttribute.cs
- DockProviderWrapper.cs
- Helpers.cs
- SqlClientPermission.cs
- DataGridViewCell.cs
- SByte.cs
- ProcessHostFactoryHelper.cs
- ExtendedProperty.cs
- ObfuscationAttribute.cs
- CoreSwitches.cs
- DropShadowBitmapEffect.cs
- ChangeConflicts.cs
- XmlElementAttributes.cs
- XmlJsonWriter.cs
- WSFederationHttpSecurity.cs
- AsymmetricKeyExchangeFormatter.cs
- TouchPoint.cs
- ProviderMetadata.cs
- MeasureItemEvent.cs
- HttpCacheParams.cs
- Positioning.cs
- __Error.cs
- ProgressBarRenderer.cs
- SubpageParagraph.cs
- EmbeddedMailObject.cs
- ImageMetadata.cs
- AttributeParameterInfo.cs
- Stylus.cs
- X509SecurityTokenProvider.cs
- InternalTypeHelper.cs
- SafeCryptoHandles.cs
- UIPermission.cs
- GroupBoxAutomationPeer.cs
- ControlPaint.cs
- FixedDocumentPaginator.cs
- ConfigurationPropertyAttribute.cs
- InheritanceContextHelper.cs
- CharacterMetricsDictionary.cs
- localization.cs
- SourceLineInfo.cs
- BindingValueChangedEventArgs.cs
- Variant.cs
- AccessControlList.cs
- BufferCache.cs
- SparseMemoryStream.cs
- SignatureDescription.cs
- BindingNavigator.cs
- RefreshEventArgs.cs
- PlacementWorkspace.cs
- InternalSafeNativeMethods.cs
- TcpWorkerProcess.cs
- WindowsMenu.cs
- ThreadStateException.cs
- SqlTypeSystemProvider.cs
- RegexGroup.cs
- Queue.cs