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
- LoadMessageLogger.cs
- RuntimeResourceSet.cs
- MenuItemStyleCollectionEditor.cs
- Animatable.cs
- ALinqExpressionVisitor.cs
- DockPatternIdentifiers.cs
- ListenDesigner.cs
- GetWinFXPath.cs
- SoapMessage.cs
- SimpleTypeResolver.cs
- Dispatcher.cs
- SymmetricKeyWrap.cs
- CodeComment.cs
- CommandLineParser.cs
- ClientTargetCollection.cs
- ServiceOperationDetailViewControl.cs
- DataServiceProcessingPipelineEventArgs.cs
- ObsoleteAttribute.cs
- TraceContextRecord.cs
- SerializationObjectManager.cs
- XmlWellformedWriter.cs
- NavigationCommands.cs
- KeyboardDevice.cs
- BinaryObjectReader.cs
- SqlGenericUtil.cs
- InputEventArgs.cs
- DataView.cs
- WebPartTransformerAttribute.cs
- RemoteWebConfigurationHostStream.cs
- Matrix.cs
- FixedSOMPage.cs
- PageRequestManager.cs
- NCryptNative.cs
- WpfGeneratedKnownTypes.cs
- CodeAttributeArgument.cs
- ConstrainedDataObject.cs
- RoleBoolean.cs
- QueryResult.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XamlRtfConverter.cs
- VersionPair.cs
- MenuAdapter.cs
- Repeater.cs
- RegexRunner.cs
- ServiceNotStartedException.cs
- StatusBarItem.cs
- DataGridViewAdvancedBorderStyle.cs
- FormView.cs
- TableColumnCollection.cs
- XamlSerializerUtil.cs
- UnknownMessageReceivedEventArgs.cs
- OletxTransactionManager.cs
- COM2IDispatchConverter.cs
- UnaryQueryOperator.cs
- XmlILAnnotation.cs
- NullableBoolConverter.cs
- WindowsSecurityToken.cs
- LayoutEngine.cs
- TriState.cs
- SeekableReadStream.cs
- BatchParser.cs
- DownloadProgressEventArgs.cs
- QilExpression.cs
- Timeline.cs
- XmlToDatasetMap.cs
- MetadataUtilsSmi.cs
- TextAdaptor.cs
- QueryModel.cs
- ReverseComparer.cs
- DbExpressionVisitor_TResultType.cs
- TransformPattern.cs
- ActiveXSite.cs
- DateTime.cs
- SqlRowUpdatedEvent.cs
- Tool.cs
- TriState.cs
- EventlogProvider.cs
- ListBindableAttribute.cs
- FocusManager.cs
- ClassGenerator.cs
- CompilationRelaxations.cs
- BodyGlyph.cs
- WpfKnownMember.cs
- Rect.cs
- SortAction.cs
- CodeTypeReferenceExpression.cs
- GeneralTransform3DGroup.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- IsolatedStoragePermission.cs
- SafeBitVector32.cs
- DocumentReferenceCollection.cs
- FrameworkRichTextComposition.cs
- HtmlInputImage.cs
- BamlMapTable.cs
- DataColumnMapping.cs
- PageCatalogPartDesigner.cs
- Margins.cs
- SynchronizedInputProviderWrapper.cs
- JavaScriptObjectDeserializer.cs
- SqlEnums.cs