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
- ByteFacetDescriptionElement.cs
- ExpressionBuilder.cs
- CodeComment.cs
- __Filters.cs
- ForwardPositionQuery.cs
- BamlRecordHelper.cs
- ListViewInsertionMark.cs
- SpoolingTaskBase.cs
- CachedBitmap.cs
- IUnknownConstantAttribute.cs
- XsdDateTime.cs
- GridViewColumnHeader.cs
- ReferenceEqualityComparer.cs
- ReliabilityContractAttribute.cs
- SingleKeyFrameCollection.cs
- ScriptModule.cs
- SettingsAttributes.cs
- SqlDataSourceCommandEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- DiscreteKeyFrames.cs
- GeometryConverter.cs
- ContextItem.cs
- XmlTypeAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- EventSetter.cs
- XPathAncestorQuery.cs
- ImageButton.cs
- XmlReader.cs
- GeneralTransform3DTo2DTo3D.cs
- WorkflowDurableInstance.cs
- OleDbEnumerator.cs
- UriSection.cs
- DesignerAutoFormatCollection.cs
- TextTrailingWordEllipsis.cs
- SystemResourceKey.cs
- StateMachineWorkflow.cs
- Size3D.cs
- SqlServices.cs
- AvTraceDetails.cs
- _ConnectOverlappedAsyncResult.cs
- SelectionListComponentEditor.cs
- XPathNavigatorReader.cs
- Pen.cs
- AutoScrollExpandMessageFilter.cs
- DragDropManager.cs
- ContainerUIElement3D.cs
- AdornedElementPlaceholder.cs
- ForceCopyBuildProvider.cs
- Int16Storage.cs
- InvokeGenerator.cs
- ComponentResourceKey.cs
- CompositeTypefaceMetrics.cs
- TraceUtility.cs
- SqlTransaction.cs
- NgenServicingAttributes.cs
- Path.cs
- FlowDocumentPage.cs
- AccessorTable.cs
- TextInfo.cs
- Profiler.cs
- UrlAuthorizationModule.cs
- PanelStyle.cs
- XamlClipboardData.cs
- EntityException.cs
- DataControlButton.cs
- XmlProcessingInstruction.cs
- DisplayNameAttribute.cs
- FixedLineResult.cs
- ExitEventArgs.cs
- UTF32Encoding.cs
- TraversalRequest.cs
- HttpModuleAction.cs
- PathFigureCollection.cs
- wmiprovider.cs
- SQLGuid.cs
- HashStream.cs
- PointUtil.cs
- SQLStringStorage.cs
- DropShadowEffect.cs
- OneWayChannelListener.cs
- ContentWrapperAttribute.cs
- AspNetCompatibilityRequirementsMode.cs
- SHA256.cs
- HostingPreferredMapPath.cs
- DispatchProxy.cs
- ClientTargetSection.cs
- _LocalDataStore.cs
- ComponentSerializationService.cs
- WebServiceAttribute.cs
- WCFServiceClientProxyGenerator.cs
- EmptyReadOnlyDictionaryInternal.cs
- AlphabeticalEnumConverter.cs
- SaveFileDialog.cs
- ContainerUtilities.cs
- DocumentSchemaValidator.cs
- SystemIPv4InterfaceProperties.cs
- Asn1IntegerConverter.cs
- DateTimeOffset.cs
- DispatcherEventArgs.cs
- BuildProvidersCompiler.cs