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
- SecurityValidationBehavior.cs
- ReflectEventDescriptor.cs
- SettingsSavedEventArgs.cs
- InvalidComObjectException.cs
- XmlSchemaGroupRef.cs
- DbParameterHelper.cs
- ManagementInstaller.cs
- ExpanderAutomationPeer.cs
- UnmanagedMarshal.cs
- LabelLiteral.cs
- CatalogPartChrome.cs
- AnnotationObservableCollection.cs
- FlowDocumentFormatter.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- HttpAsyncResult.cs
- FieldAccessException.cs
- XmlSignatureManifest.cs
- FixedSchema.cs
- ValueQuery.cs
- DataGridViewColumnTypeEditor.cs
- DescendantOverDescendantQuery.cs
- SoapEnumAttribute.cs
- ReachPageContentSerializer.cs
- ContentType.cs
- HtmlWindow.cs
- SecurityStateEncoder.cs
- AuthenticationSection.cs
- BinaryFormatter.cs
- List.cs
- CheckBoxBaseAdapter.cs
- RuntimeArgumentHandle.cs
- PackagePart.cs
- MsmqReceiveHelper.cs
- RectangleF.cs
- XmlTextReaderImplHelpers.cs
- ForwardPositionQuery.cs
- ExpressionBuilderContext.cs
- PrintEvent.cs
- SeparatorAutomationPeer.cs
- NavigationFailedEventArgs.cs
- ZipPackage.cs
- SystemNetworkInterface.cs
- StylusEventArgs.cs
- _CommandStream.cs
- BuildProviderAppliesToAttribute.cs
- PlanCompiler.cs
- FixedSOMImage.cs
- BinaryMethodMessage.cs
- SemanticTag.cs
- PermissionToken.cs
- OleDbEnumerator.cs
- FrameworkContentElement.cs
- DependencyStoreSurrogate.cs
- ConstraintCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- HttpModule.cs
- PathTooLongException.cs
- RenderContext.cs
- Compilation.cs
- CodeDomSerializationProvider.cs
- KeyFrames.cs
- ValidationResult.cs
- CallSiteBinder.cs
- LocalizationParserHooks.cs
- BamlStream.cs
- AncillaryOps.cs
- Duration.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SmiSettersStream.cs
- JsonWriter.cs
- _NtlmClient.cs
- RSAPKCS1SignatureDeformatter.cs
- PersonalizableTypeEntry.cs
- ErrorProvider.cs
- Tuple.cs
- LinqDataSourceContextEventArgs.cs
- XmlEncoding.cs
- FamilyMapCollection.cs
- Preprocessor.cs
- HttpHeaderCollection.cs
- CreateUserErrorEventArgs.cs
- DataGridLength.cs
- LocatorBase.cs
- DataObjectEventArgs.cs
- FormsAuthenticationUser.cs
- DecimalConstantAttribute.cs
- TextBoxDesigner.cs
- DataGridViewTopRowAccessibleObject.cs
- OleDbRowUpdatingEvent.cs
- CrossContextChannel.cs
- WindowsContainer.cs
- DbException.cs
- XPathNodePointer.cs
- cookiecontainer.cs
- Cursor.cs
- MetadataHelper.cs
- Error.cs
- GetFileNameResult.cs
- DependencyObjectCodeDomSerializer.cs
- DocumentPage.cs