Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDataSourceValidationException.cs
- CreatingCookieEventArgs.cs
- CodeStatementCollection.cs
- XsdCachingReader.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- HwndProxyElementProvider.cs
- OleDbConnection.cs
- Setter.cs
- DirtyTextRange.cs
- DataContractJsonSerializer.cs
- RTLAwareMessageBox.cs
- EntityReference.cs
- EdmPropertyAttribute.cs
- ScriptDescriptor.cs
- TreeViewCancelEvent.cs
- SqlTypeConverter.cs
- CodeDirectionExpression.cs
- JsonEnumDataContract.cs
- NextPreviousPagerField.cs
- Substitution.cs
- DiscoveryReferences.cs
- PolygonHotSpot.cs
- IgnoreSection.cs
- StaticSiteMapProvider.cs
- ResponseBodyWriter.cs
- CustomErrorsSectionWrapper.cs
- Accessible.cs
- DynamicRendererThreadManager.cs
- ExtendedPropertyCollection.cs
- MultiPropertyDescriptorGridEntry.cs
- SimpleType.cs
- ExternalException.cs
- SystemException.cs
- PathSegment.cs
- ColumnMapProcessor.cs
- Binding.cs
- MetafileHeaderWmf.cs
- PixelFormatConverter.cs
- AuthorizationContext.cs
- Helpers.cs
- Expressions.cs
- Int32Rect.cs
- DivideByZeroException.cs
- PassportAuthenticationEventArgs.cs
- EventLogException.cs
- DbLambda.cs
- EpmSourcePathSegment.cs
- BaseParser.cs
- SmiEventSink.cs
- UserControlFileEditor.cs
- ColorTranslator.cs
- XmlSecureResolver.cs
- ExtentKey.cs
- TransactionScope.cs
- NamespaceQuery.cs
- SortedDictionary.cs
- ModulesEntry.cs
- LinqMaximalSubtreeNominator.cs
- ExecutionContext.cs
- EntitySetBaseCollection.cs
- FixedHighlight.cs
- HostingEnvironmentSection.cs
- InsufficientMemoryException.cs
- WindowsListViewScroll.cs
- DataViewSetting.cs
- SecureConversationSecurityTokenParameters.cs
- AnnotationComponentChooser.cs
- AssemblyUtil.cs
- ValueExpressions.cs
- wmiutil.cs
- Ipv6Element.cs
- CapabilitiesSection.cs
- DesignerActionPanel.cs
- ButtonFlatAdapter.cs
- MemoryPressure.cs
- ContourSegment.cs
- CompositeCollectionView.cs
- LayoutTableCell.cs
- WebBrowserNavigatingEventHandler.cs
- DynamicScriptObject.cs
- ObjectDesignerDataSourceView.cs
- RadioButton.cs
- PointF.cs
- Button.cs
- DataConnectionHelper.cs
- HttpException.cs
- FixedStringLookup.cs
- CodeMemberEvent.cs
- HierarchicalDataSourceControl.cs
- ISAPIWorkerRequest.cs
- FusionWrap.cs
- DataGridRow.cs
- FunctionUpdateCommand.cs
- OciEnlistContext.cs
- KeyGesture.cs
- NonValidatingSecurityTokenAuthenticator.cs
- ToolStripItemTextRenderEventArgs.cs
- WebPartDisplayMode.cs
- EmbeddedMailObjectsCollection.cs
- DependencyStoreSurrogate.cs