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
- GridLength.cs
- XmlNamespaceDeclarationsAttribute.cs
- ModelItemCollection.cs
- filewebrequest.cs
- WebPageTraceListener.cs
- StandardCommands.cs
- FilteredReadOnlyMetadataCollection.cs
- XamlWrappingReader.cs
- Win32Native.cs
- CurrencyManager.cs
- translator.cs
- DbExpressionRules.cs
- ButtonColumn.cs
- ProviderUtil.cs
- GridViewDeleteEventArgs.cs
- TreeViewHitTestInfo.cs
- ByteViewer.cs
- XPathEmptyIterator.cs
- StylusEditingBehavior.cs
- DBPropSet.cs
- storepermissionattribute.cs
- SequenceDesigner.cs
- CheckBox.cs
- Font.cs
- ToolStripItemEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- LinearGradientBrush.cs
- XhtmlTextWriter.cs
- SymbolEqualComparer.cs
- messageonlyhwndwrapper.cs
- DescendantOverDescendantQuery.cs
- LazyTextWriterCreator.cs
- HtmlWindowCollection.cs
- HtmlWindowCollection.cs
- WeakReferenceList.cs
- ProbeMatchesMessage11.cs
- TextTrailingWordEllipsis.cs
- PointIndependentAnimationStorage.cs
- BeginStoryboard.cs
- LayoutDump.cs
- TypedTableBaseExtensions.cs
- HttpException.cs
- OdbcParameterCollection.cs
- XmlSchemaInfo.cs
- safemediahandle.cs
- GlobalEventManager.cs
- CustomServiceCredentials.cs
- Soap.cs
- ObjectListCommandEventArgs.cs
- LeaseManager.cs
- GlyphRun.cs
- MarshalByRefObject.cs
- TextEditorDragDrop.cs
- ButtonBaseAdapter.cs
- XmlSchemaIdentityConstraint.cs
- UndirectedGraph.cs
- BaseInfoTable.cs
- ConfigXmlWhitespace.cs
- SiteMap.cs
- IndependentAnimationStorage.cs
- DataGridViewCellCollection.cs
- CultureInfoConverter.cs
- ModifierKeysValueSerializer.cs
- IntSecurity.cs
- HttpRawResponse.cs
- DateTimeOffset.cs
- PageRanges.cs
- CharEntityEncoderFallback.cs
- TypeUnloadedException.cs
- BlurEffect.cs
- documentsequencetextpointer.cs
- RedirectionProxy.cs
- ActivityStateQuery.cs
- Highlights.cs
- XmlNamespaceManager.cs
- _ConnectionGroup.cs
- MeasurementDCInfo.cs
- ScriptIgnoreAttribute.cs
- WebPartCatalogCloseVerb.cs
- ObjectSet.cs
- MetadataArtifactLoaderCompositeFile.cs
- LongPath.cs
- SelectionWordBreaker.cs
- WebException.cs
- DynamicActivityProperty.cs
- ListItemCollection.cs
- Perspective.cs
- Sentence.cs
- WebPartActionVerb.cs
- Fault.cs
- Msec.cs
- WorkflowHostingEndpoint.cs
- SecurityImpersonationBehavior.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Executor.cs
- AssemblyBuilderData.cs
- DocumentAutomationPeer.cs
- CalendarDay.cs
- SimpleHandlerFactory.cs
- FormatVersion.cs