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
- DefaultValueAttribute.cs
- Stroke.cs
- FileCodeGroup.cs
- WebPartEventArgs.cs
- SqlStatistics.cs
- SingleBodyParameterMessageFormatter.cs
- WsiProfilesElementCollection.cs
- DecoderFallbackWithFailureFlag.cs
- StructureChangedEventArgs.cs
- XPathAncestorIterator.cs
- TypeToken.cs
- DrawingVisualDrawingContext.cs
- CustomErrorsSection.cs
- DataGridViewSelectedRowCollection.cs
- MultiSelectRootGridEntry.cs
- IpcClientChannel.cs
- FormViewPageEventArgs.cs
- RelationshipDetailsRow.cs
- Type.cs
- StatusBar.cs
- FileUpload.cs
- DataGridViewCellMouseEventArgs.cs
- TimeSpanMinutesConverter.cs
- TableItemStyle.cs
- TextBox.cs
- HttpRuntime.cs
- HtmlControl.cs
- BuildProvider.cs
- BaseValidator.cs
- UInt64.cs
- HttpListener.cs
- ReadOnlyNameValueCollection.cs
- WebServiceClientProxyGenerator.cs
- GuidelineCollection.cs
- ListManagerBindingsCollection.cs
- ColumnHeaderConverter.cs
- BitmapFrameDecode.cs
- panel.cs
- DeclarationUpdate.cs
- ScrollableControl.cs
- DateTimeConverter.cs
- PrtTicket_Base.cs
- PageThemeBuildProvider.cs
- AttachedAnnotationChangedEventArgs.cs
- DockingAttribute.cs
- ObjectMaterializedEventArgs.cs
- Tracer.cs
- UpdateDelegates.Generated.cs
- QueryConverter.cs
- ToolStripDropDownButton.cs
- EntityDesignerBuildProvider.cs
- FastEncoderStatics.cs
- HebrewNumber.cs
- Utils.cs
- RewritingValidator.cs
- Int32AnimationUsingKeyFrames.cs
- PublisherIdentityPermission.cs
- DataServiceRequest.cs
- DependencyProperty.cs
- SnapshotChangeTrackingStrategy.cs
- DefinitionUpdate.cs
- FtpRequestCacheValidator.cs
- SafeHGlobalHandleCritical.cs
- ConfigXmlComment.cs
- Utils.cs
- JsonWriter.cs
- FillErrorEventArgs.cs
- RuleProcessor.cs
- WebPartAuthorizationEventArgs.cs
- WebPartDisplayModeEventArgs.cs
- BaseTreeIterator.cs
- XmlAutoDetectWriter.cs
- XmlSchemaInclude.cs
- SmtpReplyReaderFactory.cs
- SoapFormatExtensions.cs
- Part.cs
- CalendarKeyboardHelper.cs
- SqlDataSourceEnumerator.cs
- InstallHelper.cs
- ProfileManager.cs
- UpdatePanel.cs
- SubtreeProcessor.cs
- MasterPageBuildProvider.cs
- RegexMatchCollection.cs
- FilePrompt.cs
- FixedFlowMap.cs
- UIElement.cs
- X509SecurityTokenAuthenticator.cs
- DataAdapter.cs
- StsCommunicationException.cs
- PrinterUnitConvert.cs
- HttpCachePolicy.cs
- SqlDependencyUtils.cs
- SoapAttributes.cs
- _SslState.cs
- EntityContainerEmitter.cs
- DetailsViewPagerRow.cs
- OuterGlowBitmapEffect.cs
- DataSourceBooleanViewSchemaConverter.cs
- AnnotationObservableCollection.cs