Code:
/ DotNET / DotNET / 8.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
- FaultConverter.cs
- MsmqIntegrationMessageProperty.cs
- TextViewSelectionProcessor.cs
- ActiveXHelper.cs
- IsolatedStorageFilePermission.cs
- XmlDataDocument.cs
- XmlSignatureProperties.cs
- Script.cs
- HttpWebRequestElement.cs
- StatusBarItemAutomationPeer.cs
- DefaultConfirmation.cs
- ConsumerConnectionPoint.cs
- PageRanges.cs
- ContainerActivationHelper.cs
- PreviewPageInfo.cs
- Int64Storage.cs
- InstalledFontCollection.cs
- processwaithandle.cs
- PtsContext.cs
- NetCodeGroup.cs
- TableMethodGenerator.cs
- ScriptingRoleServiceSection.cs
- _TransmitFileOverlappedAsyncResult.cs
- FactoryGenerator.cs
- RoutedPropertyChangedEventArgs.cs
- Input.cs
- RectangleConverter.cs
- Message.cs
- XmlFileEditor.cs
- LinqDataSourceHelper.cs
- SafeBitVector32.cs
- VariantWrapper.cs
- Stopwatch.cs
- GlobalizationAssembly.cs
- ExcCanonicalXml.cs
- isolationinterop.cs
- XmlNodeChangedEventManager.cs
- CombinedGeometry.cs
- ReadOnlyAttribute.cs
- CssTextWriter.cs
- brushes.cs
- ChtmlImageAdapter.cs
- ToolStripControlHost.cs
- FtpCachePolicyElement.cs
- MessageContractAttribute.cs
- Pipe.cs
- Classification.cs
- BamlStream.cs
- WindowsEditBoxRange.cs
- LockedAssemblyCache.cs
- JulianCalendar.cs
- WizardStepBase.cs
- BaseAddressPrefixFilterElementCollection.cs
- RuntimeHandles.cs
- TableDesigner.cs
- RequiredAttributeAttribute.cs
- CodeAccessSecurityEngine.cs
- ClientSettings.cs
- SrgsSemanticInterpretationTag.cs
- DataGridPagingPage.cs
- DataBindingHandlerAttribute.cs
- DependencyPropertyAttribute.cs
- TransactionContextValidator.cs
- DelayedRegex.cs
- ThousandthOfEmRealDoubles.cs
- DynamicValidatorEventArgs.cs
- InfoCardSymmetricAlgorithm.cs
- SpellerError.cs
- ViewUtilities.cs
- PlainXmlSerializer.cs
- FileReservationCollection.cs
- InstanceKeyNotReadyException.cs
- SizeValueSerializer.cs
- UnionExpr.cs
- NetworkStream.cs
- MaskedTextBox.cs
- Int32CAMarshaler.cs
- XDeferredAxisSource.cs
- Int32Storage.cs
- FactoryMaker.cs
- DataListItem.cs
- CompilerWrapper.cs
- CommandHelpers.cs
- JavaScriptString.cs
- SeverityFilter.cs
- IdentityElement.cs
- UserControl.cs
- LateBoundBitmapDecoder.cs
- QueryAsyncResult.cs
- PolicyValidator.cs
- ReadWriteObjectLock.cs
- Transactions.cs
- ImplicitInputBrush.cs
- TransformerInfo.cs
- AxisAngleRotation3D.cs
- GiveFeedbackEventArgs.cs
- TextReader.cs
- TreeNodeStyleCollection.cs
- InternalTypeHelper.cs
- Schema.cs