Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- OdbcFactory.cs
- TraceAsyncResult.cs
- UDPClient.cs
- ColorContext.cs
- Switch.cs
- DesignerTextBoxAdapter.cs
- CodeAttributeArgumentCollection.cs
- BindableTemplateBuilder.cs
- Attachment.cs
- ConnectionManagementSection.cs
- LogicalTreeHelper.cs
- XmlArrayItemAttributes.cs
- DataBindingList.cs
- VerificationAttribute.cs
- HtmlElementEventArgs.cs
- WSHttpSecurityElement.cs
- DbConnectionInternal.cs
- ReturnValue.cs
- CacheEntry.cs
- ObjectAnimationUsingKeyFrames.cs
- TagMapInfo.cs
- ObjectMaterializedEventArgs.cs
- Overlapped.cs
- ProcessProtocolHandler.cs
- TreeViewEvent.cs
- WebPartConnectionCollection.cs
- DigestComparer.cs
- ControlValuePropertyAttribute.cs
- TextFindEngine.cs
- IndicFontClient.cs
- BuildManagerHost.cs
- ContextStack.cs
- XslNumber.cs
- PopupEventArgs.cs
- URLIdentityPermission.cs
- SubordinateTransaction.cs
- DefaultBinder.cs
- TraceUtils.cs
- FontUnit.cs
- SnapshotChangeTrackingStrategy.cs
- SQLChars.cs
- CookieProtection.cs
- ProcessModelSection.cs
- TypeGeneratedEventArgs.cs
- AdjustableArrowCap.cs
- EventLogException.cs
- WinFormsComponentEditor.cs
- VisualBrush.cs
- FontCollection.cs
- WbemProvider.cs
- PeerNameRecordCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- SetIndexBinder.cs
- PathFigureCollectionConverter.cs
- SaveWorkflowCommand.cs
- StylusDownEventArgs.cs
- SafeMemoryMappedViewHandle.cs
- XmlSchemaImport.cs
- WorkflowDesigner.cs
- CommandManager.cs
- SortKey.cs
- EventLogHandle.cs
- SolidBrush.cs
- AsymmetricAlgorithm.cs
- EntityDataSourceState.cs
- TemplateInstanceAttribute.cs
- SignerInfo.cs
- CompatibleComparer.cs
- AliasGenerator.cs
- InteropBitmapSource.cs
- TypeConstant.cs
- LogicalExpr.cs
- ExpandedWrapper.cs
- ColorTransformHelper.cs
- DBSchemaTable.cs
- PersonalizationStateInfoCollection.cs
- DbMetaDataCollectionNames.cs
- XXXOnTypeBuilderInstantiation.cs
- Document.cs
- PathFigure.cs
- TypeListConverter.cs
- DispatchChannelSink.cs
- Highlights.cs
- SizeChangedInfo.cs
- SqlParameter.cs
- Matrix3DConverter.cs
- PriorityQueue.cs
- AmbientValueAttribute.cs
- ObjRef.cs
- CustomSignedXml.cs
- FileRegion.cs
- SqlConnection.cs
- XmlNodeChangedEventManager.cs
- DataGridViewCellEventArgs.cs
- InfoCardArgumentException.cs
- AuthorizationSection.cs
- TextContainerHelper.cs
- TableLayoutSettings.cs
- TypeConvertions.cs
- MultiTargetingUtil.cs