Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsGraphicsWrapper.cs
- SpinWait.cs
- SystemWebCachingSectionGroup.cs
- ThicknessAnimationBase.cs
- LockedHandleGlyph.cs
- DictionaryBase.cs
- SplitterCancelEvent.cs
- Color.cs
- OutputWindow.cs
- EdmConstants.cs
- WinEventQueueItem.cs
- BindingElement.cs
- LayoutUtils.cs
- StickyNoteHelper.cs
- SmtpLoginAuthenticationModule.cs
- BigInt.cs
- PrintEvent.cs
- HtmlControl.cs
- FreeFormPanel.cs
- DomainUpDown.cs
- _LoggingObject.cs
- TextServicesProperty.cs
- DeferredReference.cs
- SourceItem.cs
- BoolExpression.cs
- BasicHttpMessageCredentialType.cs
- XmlSchemaObject.cs
- AssemblyAttributes.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- Win32.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- X509CertificateTrustedIssuerElement.cs
- TimeSpan.cs
- WebPartDisplayModeEventArgs.cs
- BufferedStream.cs
- ObjectStateFormatter.cs
- OdbcEnvironment.cs
- ALinqExpressionVisitor.cs
- FormViewInsertEventArgs.cs
- TextEditorTables.cs
- RoutedEvent.cs
- ContextStaticAttribute.cs
- ImageClickEventArgs.cs
- EncodingTable.cs
- ToolStripDropTargetManager.cs
- StorageConditionPropertyMapping.cs
- Expander.cs
- XmlDeclaration.cs
- AdRotator.cs
- RenderData.cs
- InputScopeConverter.cs
- Number.cs
- TemplateEditingFrame.cs
- TdsValueSetter.cs
- SchemaTableOptionalColumn.cs
- EdmMember.cs
- SqlDataSourceQueryConverter.cs
- TextFormatterContext.cs
- WorkflowNamespace.cs
- DBConcurrencyException.cs
- NameValuePermission.cs
- XamlFxTrace.cs
- EntityException.cs
- XmlSignificantWhitespace.cs
- WindowsUpDown.cs
- XmlNodeChangedEventArgs.cs
- EncoderParameter.cs
- XmlEntity.cs
- BulletDecorator.cs
- DrawTreeNodeEventArgs.cs
- ContactManager.cs
- ComponentResourceKey.cs
- StructuredTypeEmitter.cs
- Rect3D.cs
- FixedElement.cs
- TimelineClockCollection.cs
- webclient.cs
- DesignerActionTextItem.cs
- AttributeInfo.cs
- x509utils.cs
- KeyManager.cs
- RequiredAttributeAttribute.cs
- ValidationResult.cs
- List.cs
- X509RawDataKeyIdentifierClause.cs
- SqlConnectionString.cs
- XmlSerializerFactory.cs
- SequentialWorkflowHeaderFooter.cs
- DataService.cs
- IList.cs
- CompilerParameters.cs
- PageStatePersister.cs
- BinaryFormatterWriter.cs
- DefaultObjectMappingItemCollection.cs
- DataGridParentRows.cs
- IResourceProvider.cs
- BufferedStream.cs
- GeneralTransform3D.cs
- FrameworkElementFactory.cs
- EditorPartChrome.cs