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
- StatusBarPanel.cs
- Point3DKeyFrameCollection.cs
- MimeTypeAttribute.cs
- WebGetAttribute.cs
- PEFileReader.cs
- StrongName.cs
- FileSecurity.cs
- SimplePropertyEntry.cs
- HtmlTable.cs
- Int32Collection.cs
- DecoderFallback.cs
- ObfuscateAssemblyAttribute.cs
- XpsFilter.cs
- FrameworkElementFactoryMarkupObject.cs
- CatalogPartCollection.cs
- QuotedPrintableStream.cs
- ObjectRef.cs
- SecurityUtils.cs
- ResetableIterator.cs
- Compensation.cs
- MenuBase.cs
- SqlNotificationEventArgs.cs
- AssemblyInfo.cs
- HttpConfigurationContext.cs
- CacheDependency.cs
- PackageRelationshipCollection.cs
- Emitter.cs
- InputScope.cs
- CorrelationKey.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DataGridViewColumnConverter.cs
- FileClassifier.cs
- SpinLock.cs
- RegexWriter.cs
- SqlAggregateChecker.cs
- InternalBufferOverflowException.cs
- WebPartDisplayModeCollection.cs
- RectKeyFrameCollection.cs
- SecurityTokenProvider.cs
- OutputCacheSection.cs
- DBConcurrencyException.cs
- HtmlGenericControl.cs
- PageEventArgs.cs
- TableCell.cs
- PlanCompiler.cs
- DataGridViewHeaderCell.cs
- BindingList.cs
- DataGridViewCheckBoxCell.cs
- EntityDataSourceEntitySetNameItem.cs
- CallId.cs
- AVElementHelper.cs
- UIPermission.cs
- SqlMethodTransformer.cs
- Label.cs
- PublishLicense.cs
- MatrixAnimationBase.cs
- QilLiteral.cs
- DocumentOrderQuery.cs
- DependencyPropertyChangedEventArgs.cs
- ToolStripDropTargetManager.cs
- CodeSubDirectory.cs
- CapacityStreamGeometryContext.cs
- DataFieldConverter.cs
- TreeNodeConverter.cs
- BufferModeSettings.cs
- TextLine.cs
- CacheSection.cs
- ThreadStateException.cs
- WebProxyScriptElement.cs
- MemoryRecordBuffer.cs
- HostedElements.cs
- BaseConfigurationRecord.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- DataGridItem.cs
- DataBindingValueUIHandler.cs
- Hashtable.cs
- TypeForwardedToAttribute.cs
- HttpInputStream.cs
- Models.cs
- QilIterator.cs
- SqlProcedureAttribute.cs
- WebServiceAttribute.cs
- _HTTPDateParse.cs
- MeshGeometry3D.cs
- ObjectStateFormatter.cs
- SqlRowUpdatedEvent.cs
- ContextStack.cs
- Expander.cs
- PasswordPropertyTextAttribute.cs
- DocumentOutline.cs
- XPathAncestorIterator.cs
- ToolStripDropDownItem.cs
- ElementHostPropertyMap.cs
- TypeExtensionConverter.cs
- Msec.cs
- QilInvokeLateBound.cs
- DbDataReader.cs
- ConfigXmlText.cs
- MissingManifestResourceException.cs
- PersonalizationProviderHelper.cs