Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / WebControlAdapter.cs / 1305376 / WebControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Provides adaptive rendering for a web control. 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.Web; using System.Web.UI; using System.Web.UI.Adapters; // Provides adaptive rendering for a web control. 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
- TraceLevelStore.cs
- TypeDependencyAttribute.cs
- RightsManagementEncryptionTransform.cs
- WebPartZoneCollection.cs
- ColorTranslator.cs
- MyContact.cs
- MsmqActivation.cs
- arclist.cs
- RelatedImageListAttribute.cs
- ProcessHostMapPath.cs
- PageThemeBuildProvider.cs
- SqlHelper.cs
- ForceCopyBuildProvider.cs
- AbsoluteQuery.cs
- IOThreadTimer.cs
- UriParserTemplates.cs
- ServiceContractListItemList.cs
- WebPartDescription.cs
- XmlSignificantWhitespace.cs
- SystemIcmpV6Statistics.cs
- ResourceDisplayNameAttribute.cs
- WorkflowItemsPresenter.cs
- SslStream.cs
- Module.cs
- Int64Animation.cs
- BitmapEffectInputConnector.cs
- X509Certificate2Collection.cs
- TimeSpanConverter.cs
- DbConnectionStringCommon.cs
- FormsAuthenticationModule.cs
- ReaderContextStackData.cs
- DbgUtil.cs
- Sentence.cs
- FunctionCommandText.cs
- DetailsViewUpdatedEventArgs.cs
- HtmlTitle.cs
- CompilerResults.cs
- PointCollection.cs
- Camera.cs
- PrintEvent.cs
- ResolvedKeyFrameEntry.cs
- SignatureDescription.cs
- ExecutionContext.cs
- AffineTransform3D.cs
- CollectionExtensions.cs
- _ListenerRequestStream.cs
- XamlReader.cs
- PropertyPathConverter.cs
- SegmentInfo.cs
- BaseHashHelper.cs
- ListViewCommandEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- DoubleLinkListEnumerator.cs
- EpmTargetTree.cs
- XmlMembersMapping.cs
- X509Certificate.cs
- OutputWindow.cs
- UnaryNode.cs
- CurrencyManager.cs
- IPPacketInformation.cs
- TextEditorCopyPaste.cs
- DynamicMetaObjectBinder.cs
- ObjectDataSourceMethodEditor.cs
- HttpConfigurationContext.cs
- QueryContinueDragEvent.cs
- UnitySerializationHolder.cs
- DataBindingList.cs
- SegmentInfo.cs
- CheckPair.cs
- ToolStripContainerDesigner.cs
- SiteOfOriginPart.cs
- ActivationServices.cs
- TagPrefixCollection.cs
- TransferMode.cs
- HandleCollector.cs
- SymmetricKey.cs
- LabelLiteral.cs
- ListBase.cs
- Shape.cs
- UpDownBaseDesigner.cs
- ReversePositionQuery.cs
- RuntimeComponentFilter.cs
- StreamInfo.cs
- XmlWhitespace.cs
- SafeNativeMethods.cs
- RadioButtonStandardAdapter.cs
- HandlerBase.cs
- AccessKeyManager.cs
- ObjectDataSource.cs
- WebPartCloseVerb.cs
- GridViewSelectEventArgs.cs
- TextParagraph.cs
- LinqExpressionNormalizer.cs
- SortDescription.cs
- PerformanceCounters.cs
- PathParser.cs
- OwnerDrawPropertyBag.cs
- LineGeometry.cs
- ValidationHelpers.cs
- RenderingBiasValidation.cs