Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ValidatorCompatibilityHelper.cs
- LinkClickEvent.cs
- PeerName.cs
- DictionaryChange.cs
- StateFinalizationActivity.cs
- DataGridCommandEventArgs.cs
- QueryOperationResponseOfT.cs
- MonitoringDescriptionAttribute.cs
- DefaultValueConverter.cs
- RsaSecurityToken.cs
- WindowsIdentity.cs
- PersonalizationDictionary.cs
- Point3D.cs
- CharacterMetricsDictionary.cs
- COM2IDispatchConverter.cs
- EventToken.cs
- HandoffBehavior.cs
- Panel.cs
- LayoutDump.cs
- EdmProviderManifest.cs
- BinaryEditor.cs
- GeneralTransformCollection.cs
- TreeNodeStyleCollection.cs
- TextServicesCompartmentEventSink.cs
- MarkupWriter.cs
- ObjectConverter.cs
- IOException.cs
- SocketPermission.cs
- ListBoxItemWrapperAutomationPeer.cs
- HttpGetProtocolImporter.cs
- Native.cs
- AddDataControlFieldDialog.cs
- PanelContainerDesigner.cs
- AccessedThroughPropertyAttribute.cs
- IndexedEnumerable.cs
- CodeSnippetExpression.cs
- UnhandledExceptionEventArgs.cs
- StandardToolWindows.cs
- ToolStripGripRenderEventArgs.cs
- CallSiteOps.cs
- Buffer.cs
- DesignerActionList.cs
- DecimalAnimationBase.cs
- X509Chain.cs
- handlecollector.cs
- RoutingExtensionElement.cs
- ConfigXmlAttribute.cs
- SerializerWriterEventHandlers.cs
- DoubleAnimationClockResource.cs
- SystemBrushes.cs
- RouteItem.cs
- EqualityComparer.cs
- GB18030Encoding.cs
- DetailsView.cs
- Block.cs
- ArgumentElement.cs
- Pair.cs
- CookieHandler.cs
- Point3D.cs
- PolyBezierSegment.cs
- HWStack.cs
- Binding.cs
- ToolStripAdornerWindowService.cs
- PackageFilter.cs
- MatrixTransform.cs
- EntityDesignPluralizationHandler.cs
- ValueTypeFieldReference.cs
- ExceptionHelpers.cs
- SocketAddress.cs
- ModelTreeEnumerator.cs
- OutOfProcStateClientManager.cs
- TypeKeyValue.cs
- sqlcontext.cs
- SiteMapHierarchicalDataSourceView.cs
- MailAddress.cs
- ListBoxItemAutomationPeer.cs
- ResizeGrip.cs
- DerivedKeySecurityTokenStub.cs
- TableLayoutCellPaintEventArgs.cs
- TableRow.cs
- Thread.cs
- XmlSchemaChoice.cs
- QilScopedVisitor.cs
- LingerOption.cs
- HtmlContainerControl.cs
- ResourceExpressionBuilder.cs
- MessageSecurityVersionConverter.cs
- ToolTipService.cs
- StylusCollection.cs
- ObjectConverter.cs
- ToolStripSplitStackLayout.cs
- ApplicationException.cs
- _SslStream.cs
- DataControlFieldHeaderCell.cs
- ImageConverter.cs
- MatrixIndependentAnimationStorage.cs
- UrlAuthorizationModule.cs
- SecurityPolicySection.cs
- GPStream.cs
- TypeConverterHelper.cs