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
- GenericTextProperties.cs
- DocumentReference.cs
- TextContainerHelper.cs
- QuadTree.cs
- TextStore.cs
- FastPropertyAccessor.cs
- SQlBooleanStorage.cs
- ElementHostAutomationPeer.cs
- WriteableBitmap.cs
- XmlQualifiedNameTest.cs
- Matrix.cs
- DataGridRow.cs
- SelectionRangeConverter.cs
- WebUtil.cs
- RowToParametersTransformer.cs
- PartialList.cs
- SynchronizationContext.cs
- DrawListViewSubItemEventArgs.cs
- GridPattern.cs
- OperationContractGenerationContext.cs
- RowToFieldTransformer.cs
- SqlUdtInfo.cs
- CheckBox.cs
- SqlCaseSimplifier.cs
- Collection.cs
- HitTestResult.cs
- Asn1IntegerConverter.cs
- DbFunctionCommandTree.cs
- AnimationException.cs
- ReadOnlyTernaryTree.cs
- RawTextInputReport.cs
- _PooledStream.cs
- TextRenderer.cs
- TemplateInstanceAttribute.cs
- SrgsSemanticInterpretationTag.cs
- GeometryCombineModeValidation.cs
- MethodRental.cs
- PreviewControlDesigner.cs
- XmlSubtreeReader.cs
- SurrogateSelector.cs
- WindowsListViewItemStartMenu.cs
- DPTypeDescriptorContext.cs
- MD5CryptoServiceProvider.cs
- X509AsymmetricSecurityKey.cs
- MulticastOption.cs
- DynamicActivityXamlReader.cs
- SymDocumentType.cs
- SettingsSection.cs
- ReaderWriterLock.cs
- RSAProtectedConfigurationProvider.cs
- Timer.cs
- Label.cs
- DelegatingTypeDescriptionProvider.cs
- WsdlInspector.cs
- AssemblyBuilder.cs
- ToolTipAutomationPeer.cs
- MatrixUtil.cs
- Codec.cs
- DispatcherEventArgs.cs
- CssStyleCollection.cs
- Util.cs
- localization.cs
- WSSecurityTokenSerializer.cs
- GeometryModel3D.cs
- EventLogLink.cs
- ElementProxy.cs
- HtmlInputControl.cs
- BounceEase.cs
- NamespaceEmitter.cs
- EncoderBestFitFallback.cs
- ObjectParameter.cs
- HandlerFactoryCache.cs
- UnionCodeGroup.cs
- DataError.cs
- ImageMap.cs
- ExtentJoinTreeNode.cs
- ConnectionStringsExpressionBuilder.cs
- InfiniteTimeSpanConverter.cs
- URLString.cs
- mediaeventargs.cs
- DataGridViewCellEventArgs.cs
- CallSiteOps.cs
- ObjRef.cs
- DisplayNameAttribute.cs
- WebHttpBinding.cs
- WindowsFormsSectionHandler.cs
- TableProviderWrapper.cs
- OracleNumber.cs
- ImageListUtils.cs
- XmlSchemaProviderAttribute.cs
- InvalidateEvent.cs
- TreeNodeSelectionProcessor.cs
- XPathNavigator.cs
- BufferModeSettings.cs
- PeerDuplexChannelListener.cs
- DescendentsWalkerBase.cs
- VersionPair.cs
- DictionaryBase.cs
- AuthenticationModulesSection.cs
- RemotingClientProxy.cs