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
- DynamicValidator.cs
- SecurityTokenResolver.cs
- RequestStatusBarUpdateEventArgs.cs
- DefaultTraceListener.cs
- BitmapMetadataBlob.cs
- BaseTemplateParser.cs
- ProjectionCamera.cs
- ReliableReplySessionChannel.cs
- TextElementCollectionHelper.cs
- OutKeywords.cs
- ApplicationTrust.cs
- XmlAttributes.cs
- XPathExpr.cs
- ListBox.cs
- NoClickablePointException.cs
- DigitalSignature.cs
- GetPageNumberCompletedEventArgs.cs
- Win32.cs
- Selection.cs
- Double.cs
- PermissionSetEnumerator.cs
- OleDbConnection.cs
- ApplicationInfo.cs
- ConditionalAttribute.cs
- XamlFilter.cs
- OleDbConnection.cs
- CollectionContainer.cs
- VersionedStream.cs
- TdsParserSafeHandles.cs
- ServiceThrottlingElement.cs
- VisualTarget.cs
- ExpressionVisitorHelpers.cs
- UserControl.cs
- AnimationStorage.cs
- PagesSection.cs
- CustomTypeDescriptor.cs
- SqlCacheDependencyDatabase.cs
- IntSecurity.cs
- SvcFileManager.cs
- VisualTarget.cs
- ProtocolViolationException.cs
- FixedSOMLineRanges.cs
- IApplicationTrustManager.cs
- Highlights.cs
- XmlEncoding.cs
- LocalFileSettingsProvider.cs
- HttpContextServiceHost.cs
- VisualBasicDesignerHelper.cs
- graph.cs
- Visual3D.cs
- BaseServiceProvider.cs
- QueryTaskGroupState.cs
- SettingsSavedEventArgs.cs
- MediaSystem.cs
- figurelengthconverter.cs
- QueryContinueDragEventArgs.cs
- DataError.cs
- FillBehavior.cs
- CompositeScriptReferenceEventArgs.cs
- CopyOnWriteList.cs
- ObjectConverter.cs
- MessageSecurityOverMsmqElement.cs
- XmlSchemaType.cs
- BitmapEffect.cs
- XMLDiffLoader.cs
- XDeferredAxisSource.cs
- _MultipleConnectAsync.cs
- QueryExpr.cs
- GlobalProxySelection.cs
- DataServiceClientException.cs
- MultiSelector.cs
- ReturnEventArgs.cs
- HostedElements.cs
- ProjectionCamera.cs
- StorageInfo.cs
- UserUseLicenseDictionaryLoader.cs
- DeobfuscatingStream.cs
- MatrixConverter.cs
- IPEndPointCollection.cs
- RuntimeCompatibilityAttribute.cs
- QilReference.cs
- CapabilitiesSection.cs
- PieceNameHelper.cs
- ActivityCodeGenerator.cs
- NumberAction.cs
- ObjectStateManager.cs
- PagedDataSource.cs
- followingsibling.cs
- DescendentsWalker.cs
- DataObjectAttribute.cs
- TTSVoice.cs
- UnknownBitmapEncoder.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HtmlContainerControl.cs
- PlaceHolder.cs
- StorageTypeMapping.cs
- QilTernary.cs
- PreviewPrintController.cs
- SystemIcmpV6Statistics.cs
- sqlpipe.cs