Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UriTemplateMatch.cs
- ExpandCollapsePattern.cs
- CodeSubDirectoriesCollection.cs
- HeaderedItemsControl.cs
- AsymmetricSignatureFormatter.cs
- EmbeddedMailObject.cs
- IIS7UserPrincipal.cs
- EnumValAlphaComparer.cs
- ToolStripPanelRow.cs
- ResourceKey.cs
- WebPartDeleteVerb.cs
- TextWriterTraceListener.cs
- QuadraticEase.cs
- typedescriptorpermissionattribute.cs
- SqlMultiplexer.cs
- UnlockInstanceAsyncResult.cs
- SmtpDateTime.cs
- Profiler.cs
- RegionIterator.cs
- ColorBlend.cs
- MediaElementAutomationPeer.cs
- CompiledRegexRunner.cs
- DescendantOverDescendantQuery.cs
- PrincipalPermission.cs
- AlternateViewCollection.cs
- QEncodedStream.cs
- HttpPostedFile.cs
- IconConverter.cs
- AddInStore.cs
- InternalPolicyElement.cs
- Number.cs
- AsyncInvokeOperation.cs
- AttributeEmitter.cs
- PageTheme.cs
- PageThemeCodeDomTreeGenerator.cs
- ObfuscateAssemblyAttribute.cs
- ObjectItemLoadingSessionData.cs
- ControlPropertyNameConverter.cs
- CellIdBoolean.cs
- SocketPermission.cs
- RootBrowserWindow.cs
- GlobalAllocSafeHandle.cs
- XmlSchemaSimpleContentExtension.cs
- CompiledXpathExpr.cs
- PasswordPropertyTextAttribute.cs
- ActivitiesCollection.cs
- HScrollProperties.cs
- ValueProviderWrapper.cs
- PerformanceCounterLib.cs
- NativeDirectoryServicesQueryAPIs.cs
- OperationInvokerBehavior.cs
- BrushConverter.cs
- UserControl.cs
- MemberDescriptor.cs
- FixedTextView.cs
- WaitingCursor.cs
- ZipIOLocalFileBlock.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TableLayoutColumnStyleCollection.cs
- SystemEvents.cs
- IdnElement.cs
- GridView.cs
- CacheChildrenQuery.cs
- AudioFormatConverter.cs
- Win32KeyboardDevice.cs
- ItemAutomationPeer.cs
- UnsafeNativeMethods.cs
- NavigatorOutput.cs
- tabpagecollectioneditor.cs
- WebServiceReceiveDesigner.cs
- Console.cs
- SafeNativeMethods.cs
- DropShadowBitmapEffect.cs
- OperationCanceledException.cs
- CombinedGeometry.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebControl.cs
- FormClosingEvent.cs
- ILGenerator.cs
- ControlBuilderAttribute.cs
- FormsAuthenticationUser.cs
- WebControl.cs
- InternalConfigHost.cs
- ActivationServices.cs
- TextServicesLoader.cs
- BindingBase.cs
- TrackingProfile.cs
- CodeAccessSecurityEngine.cs
- CodePageEncoding.cs
- DeviceFilterEditorDialog.cs
- ClosableStream.cs
- CurrentTimeZone.cs
- ContractMethodParameterInfo.cs
- HMACMD5.cs
- XmlSchemaType.cs
- GridViewUpdateEventArgs.cs
- SelectionRange.cs
- GC.cs
- NativeMethodsOther.cs
- InputScopeNameConverter.cs