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
- RegexWriter.cs
- InlineCategoriesDocument.cs
- ExtensibleClassFactory.cs
- UnSafeCharBuffer.cs
- WindowProviderWrapper.cs
- TextRunTypographyProperties.cs
- HScrollProperties.cs
- KeyNotFoundException.cs
- SqlReferenceCollection.cs
- BitmapPalettes.cs
- LabelAutomationPeer.cs
- ArrayElementGridEntry.cs
- ClientConvert.cs
- DataGridViewCheckBoxColumn.cs
- MatrixAnimationBase.cs
- EdmSchemaAttribute.cs
- DataSpaceManager.cs
- TextBreakpoint.cs
- Typeface.cs
- InputProcessorProfiles.cs
- EmptyReadOnlyDictionaryInternal.cs
- StateValidator.cs
- ResetableIterator.cs
- HandleValueEditor.cs
- MimeTypeMapper.cs
- AutoResizedEvent.cs
- CheckBox.cs
- NotCondition.cs
- Types.cs
- Accessors.cs
- CodeObjectCreateExpression.cs
- LexicalChunk.cs
- WebPartConnectionsCancelEventArgs.cs
- SoapDocumentServiceAttribute.cs
- BinaryCommonClasses.cs
- ELinqQueryState.cs
- AssemblyNameEqualityComparer.cs
- Argument.cs
- UIElementParaClient.cs
- PasswordPropertyTextAttribute.cs
- SQLMembershipProvider.cs
- DataSourceCacheDurationConverter.cs
- XmlUrlEditor.cs
- DictionaryBase.cs
- CompilationPass2Task.cs
- DataSourceCacheDurationConverter.cs
- InvokeMethodActivityDesigner.cs
- FloaterBaseParagraph.cs
- PeerNameRecordCollection.cs
- ImmutableObjectAttribute.cs
- PlacementWorkspace.cs
- ObjectPersistData.cs
- TextServicesCompartmentContext.cs
- SqlCacheDependencyDatabase.cs
- XmlSchemaAppInfo.cs
- TableParaClient.cs
- Activator.cs
- BaseResourcesBuildProvider.cs
- ObjectViewQueryResultData.cs
- DateTimeHelper.cs
- controlskin.cs
- WinEventHandler.cs
- ParameterModifier.cs
- WinFormsComponentEditor.cs
- HttpRequestCacheValidator.cs
- WmlLabelAdapter.cs
- SigningDialog.cs
- QilInvokeEarlyBound.cs
- CompilerHelpers.cs
- GridViewCommandEventArgs.cs
- COM2PropertyDescriptor.cs
- XPathAncestorIterator.cs
- BrowserCapabilitiesFactoryBase.cs
- SwitchCase.cs
- TreeBuilderBamlTranslator.cs
- ApplicationTrust.cs
- EntityProviderServices.cs
- CompatibleComparer.cs
- HtmlInputReset.cs
- AssemblySettingAttributes.cs
- HttpServerProtocol.cs
- BaseParagraph.cs
- BamlWriter.cs
- BinaryObjectInfo.cs
- VisualBasicValue.cs
- UnknownWrapper.cs
- SHA1.cs
- SqlVersion.cs
- SkipStoryboardToFill.cs
- MessageLogTraceRecord.cs
- ConfigurationElement.cs
- RSAOAEPKeyExchangeFormatter.cs
- DecoderNLS.cs
- TableSectionStyle.cs
- DesignRelation.cs
- LifetimeServices.cs
- ArglessEventHandlerProxy.cs
- IPGlobalProperties.cs
- RegexMatchCollection.cs
- Input.cs