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
- DnsCache.cs
- PerfCounters.cs
- AmbiguousMatchException.cs
- CodeConditionStatement.cs
- CssStyleCollection.cs
- SecurityRequiresReviewAttribute.cs
- SecurityTokenSpecification.cs
- CommentEmitter.cs
- WmlValidatorAdapter.cs
- FixedDocumentSequencePaginator.cs
- ObjectHandle.cs
- CompositeDesignerAccessibleObject.cs
- SQLInt64Storage.cs
- BookmarkEventArgs.cs
- UnmanagedMarshal.cs
- DiscoveryDocumentSerializer.cs
- OutputScopeManager.cs
- WsdlBuildProvider.cs
- SectionUpdates.cs
- Monitor.cs
- Transform.cs
- DispatcherHookEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- UnicastIPAddressInformationCollection.cs
- MemberDomainMap.cs
- ChildTable.cs
- shaperfactory.cs
- XmlNode.cs
- FrameworkElement.cs
- ClientSettingsStore.cs
- SelectorItemAutomationPeer.cs
- xmlformatgeneratorstatics.cs
- VariableAction.cs
- DesignerTransactionCloseEvent.cs
- CodeMethodReturnStatement.cs
- Config.cs
- BitmapSourceSafeMILHandle.cs
- ConfigurationValue.cs
- NativeMethods.cs
- DrawListViewColumnHeaderEventArgs.cs
- X509PeerCertificateAuthentication.cs
- PeerTransportSecurityElement.cs
- Setter.cs
- TakeQueryOptionExpression.cs
- ErrorItem.cs
- ConfigXmlWhitespace.cs
- TypeLibConverter.cs
- TTSEngineProxy.cs
- StateChangeEvent.cs
- BaseComponentEditor.cs
- MediaPlayerState.cs
- GcSettings.cs
- CurrentChangedEventManager.cs
- ScriptingWebServicesSectionGroup.cs
- QilValidationVisitor.cs
- ValidationResult.cs
- CallbackHandler.cs
- ConnectionsZone.cs
- WebPartAuthorizationEventArgs.cs
- DataGridViewImageColumn.cs
- LineServices.cs
- BitmapCache.cs
- BooleanExpr.cs
- CompatibleComparer.cs
- __ComObject.cs
- FontStretches.cs
- DiffuseMaterial.cs
- XmlPreloadedResolver.cs
- List.cs
- DesignerRegion.cs
- WorkflowInstanceTerminatedRecord.cs
- WSFederationHttpSecurityMode.cs
- ListBase.cs
- EventBindingService.cs
- TreeNodeStyleCollection.cs
- WebPartDisplayModeEventArgs.cs
- TextParagraphCache.cs
- SwitchLevelAttribute.cs
- MatrixConverter.cs
- FixedSOMTextRun.cs
- LicenseException.cs
- ProviderConnectionPointCollection.cs
- Size.cs
- IPHostEntry.cs
- MaterialCollection.cs
- ProcessStartInfo.cs
- EntityReference.cs
- HostAdapter.cs
- SerializationSectionGroup.cs
- LOSFormatter.cs
- WebBrowserNavigatingEventHandler.cs
- DataColumnChangeEvent.cs
- FlowDocumentScrollViewer.cs
- SmtpNtlmAuthenticationModule.cs
- TextElement.cs
- SchemaImporterExtension.cs
- DesignTable.cs
- TextProperties.cs
- DbConnectionPoolCounters.cs
- AutoGeneratedFieldProperties.cs