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 / 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
- OpCopier.cs
- HttpConfigurationContext.cs
- UInt64Converter.cs
- DiscardableAttribute.cs
- TypeContext.cs
- EventManager.cs
- TypeUsageBuilder.cs
- X509KeyIdentifierClauseType.cs
- ClientApiGenerator.cs
- ReceiveActivityValidator.cs
- RepeatButtonAutomationPeer.cs
- Peer.cs
- SqlServices.cs
- ConnectionInterfaceCollection.cs
- oledbconnectionstring.cs
- DecoderNLS.cs
- PlaceHolder.cs
- SqlCacheDependencyDatabase.cs
- ContextStack.cs
- PackageDigitalSignature.cs
- ObjectConverter.cs
- EventLogInformation.cs
- RuleValidation.cs
- SimpleNameService.cs
- ScalarType.cs
- HttpCachePolicy.cs
- EntityDataSourceSelectingEventArgs.cs
- InputReportEventArgs.cs
- UInt16.cs
- PropertyCondition.cs
- DependencyObjectValidator.cs
- Helpers.cs
- LinearGradientBrush.cs
- SeekStoryboard.cs
- WebPartsPersonalization.cs
- Interop.cs
- NumericUpDownAccelerationCollection.cs
- DifferencingCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- AppearanceEditorPart.cs
- XmlReflectionMember.cs
- CorruptStoreException.cs
- UnknownWrapper.cs
- RowToParametersTransformer.cs
- TcpSocketManager.cs
- RangeBase.cs
- NamedPermissionSet.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ResourceDictionary.cs
- ResXResourceReader.cs
- PathNode.cs
- LinqDataSourceValidationException.cs
- MultipleCopiesCollection.cs
- FileLogRecordStream.cs
- TakeQueryOptionExpression.cs
- ListBoxChrome.cs
- Identity.cs
- TemplateField.cs
- RotateTransform3D.cs
- ConfigsHelper.cs
- SqlDataRecord.cs
- FormViewModeEventArgs.cs
- BaseTypeViewSchema.cs
- WebException.cs
- MailMessageEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- DataGridViewSelectedCellCollection.cs
- SoapIgnoreAttribute.cs
- IntranetCredentialPolicy.cs
- OuterGlowBitmapEffect.cs
- CookieProtection.cs
- PresentationSource.cs
- FilteredAttributeCollection.cs
- DataGridHeaderBorder.cs
- EncryptedPackageFilter.cs
- ProcessHostConfigUtils.cs
- FaultHandlingFilter.cs
- ReferencedType.cs
- AlternateView.cs
- PropertyStore.cs
- TimeZone.cs
- AssemblyCacheEntry.cs
- StoreContentChangedEventArgs.cs
- DmlSqlGenerator.cs
- TreeViewItemAutomationPeer.cs
- TextRunProperties.cs
- TreeNodeCollection.cs
- StrongTypingException.cs
- WindowsFormsHelpers.cs
- SelectionEditingBehavior.cs
- _ListenerAsyncResult.cs
- BuildResult.cs
- ReturnType.cs
- ToolZoneDesigner.cs
- MouseGestureValueSerializer.cs
- LicenseContext.cs
- FileReservationCollection.cs
- DnsPermission.cs
- AuthorizationContext.cs
- DataSourceProvider.cs