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
- FileDataSourceCache.cs
- SerializationException.cs
- ListViewItem.cs
- SymmetricCryptoHandle.cs
- ApplicationServiceManager.cs
- HttpStreamMessageEncoderFactory.cs
- DialogResultConverter.cs
- DesignerDataConnection.cs
- CharacterBuffer.cs
- ExcCanonicalXml.cs
- HtmlTableCell.cs
- MenuAdapter.cs
- WebBrowserEvent.cs
- sortedlist.cs
- RegionInfo.cs
- ErrorRuntimeConfig.cs
- NameValueSectionHandler.cs
- BrowserCapabilitiesFactory.cs
- LinqDataSourceInsertEventArgs.cs
- CompilerError.cs
- HyperLink.cs
- Splitter.cs
- Bidi.cs
- ProviderMetadata.cs
- GridView.cs
- DefaultMemberAttribute.cs
- FixedBufferAttribute.cs
- DockingAttribute.cs
- SystemKeyConverter.cs
- FaultPropagationQuery.cs
- AffineTransform3D.cs
- WeakHashtable.cs
- SubstitutionList.cs
- Size.cs
- WebServiceParameterData.cs
- WorkflowIdleBehavior.cs
- ReadOnlyAttribute.cs
- MgmtConfigurationRecord.cs
- Hashtable.cs
- LayoutTableCell.cs
- OleDbException.cs
- PictureBox.cs
- ExportException.cs
- PrivacyNoticeElement.cs
- Span.cs
- UriScheme.cs
- OracleInternalConnection.cs
- NonVisualControlAttribute.cs
- ConsoleKeyInfo.cs
- InheritanceContextHelper.cs
- BitStream.cs
- MsmqInputChannel.cs
- DbSetClause.cs
- InkCanvasSelectionAdorner.cs
- EnumCodeDomSerializer.cs
- CodeDirectoryCompiler.cs
- ColumnHeaderConverter.cs
- AnnotationAdorner.cs
- ThreadInterruptedException.cs
- MatrixTransform.cs
- ExpressionVisitor.cs
- CanonicalXml.cs
- DiscoveryProxy.cs
- MarkupCompiler.cs
- EncoderReplacementFallback.cs
- Rotation3D.cs
- AbstractDataSvcMapFileLoader.cs
- XmlDesignerDataSourceView.cs
- ProxyBuilder.cs
- StorageEntityTypeMapping.cs
- BitHelper.cs
- KnownBoxes.cs
- ToolStripDropDownMenu.cs
- GenerateTemporaryTargetAssembly.cs
- DataBinding.cs
- Enum.cs
- COM2IDispatchConverter.cs
- UrlMappingsSection.cs
- MetadataWorkspace.cs
- ZipIOLocalFileBlock.cs
- XmlSchemaCollection.cs
- UITypeEditor.cs
- PeerToPeerException.cs
- XmlSchemaExternal.cs
- RuleInfoComparer.cs
- ExtendedProperty.cs
- BaseHashHelper.cs
- PropertyCollection.cs
- TextEffect.cs
- StrokeNode.cs
- OutOfProcStateClientManager.cs
- BrushConverter.cs
- DataServiceQueryContinuation.cs
- DtrList.cs
- SequenceDesigner.cs
- FillErrorEventArgs.cs
- MetadataCollection.cs
- DoubleCollection.cs
- DesignerVerbCollection.cs
- ToolStripItem.cs