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
- PrintDocument.cs
- HostExecutionContextManager.cs
- XPathException.cs
- MSAANativeProvider.cs
- InputBuffer.cs
- ClientEventManager.cs
- DPCustomTypeDescriptor.cs
- ComplexBindingPropertiesAttribute.cs
- DispatchChannelSink.cs
- DuplexChannelBinder.cs
- Emitter.cs
- DbUpdateCommandTree.cs
- TextElementEditingBehaviorAttribute.cs
- CompilationUnit.cs
- UnicodeEncoding.cs
- MiniModule.cs
- DataKeyCollection.cs
- Label.cs
- ConfigurationPropertyAttribute.cs
- DetailsViewUpdateEventArgs.cs
- BinHexDecoder.cs
- SafeArrayTypeMismatchException.cs
- CultureSpecificStringDictionary.cs
- HostedImpersonationContext.cs
- TimeSpanConverter.cs
- XmlAnyElementAttribute.cs
- BitmapImage.cs
- CodeArrayIndexerExpression.cs
- VisualBasicDesignerHelper.cs
- SmtpMail.cs
- IPAddressCollection.cs
- ping.cs
- SQLInt64.cs
- SafePointer.cs
- ExtensionQuery.cs
- ValueConversionAttribute.cs
- DispatcherExceptionFilterEventArgs.cs
- DataControlFieldHeaderCell.cs
- SimpleBitVector32.cs
- OdbcUtils.cs
- TransformerConfigurationWizardBase.cs
- ToolStripContentPanelRenderEventArgs.cs
- GlobalizationAssembly.cs
- Selection.cs
- DataGridViewCellStyleConverter.cs
- BooleanFunctions.cs
- DataGridParentRows.cs
- graph.cs
- BooleanKeyFrameCollection.cs
- remotingproxy.cs
- Nodes.cs
- MessagePartDescription.cs
- SoapExtensionTypeElementCollection.cs
- ValidatedControlConverter.cs
- TargetException.cs
- SafeRsaProviderHandle.cs
- EntitySqlQueryState.cs
- CharacterHit.cs
- CheckableControlBaseAdapter.cs
- ChildTable.cs
- MessageHeaderDescription.cs
- shaperfactoryquerycachekey.cs
- MediaScriptCommandRoutedEventArgs.cs
- CryptoHandle.cs
- XomlCompilerError.cs
- TextSelection.cs
- PropertyFilterAttribute.cs
- precedingsibling.cs
- RSAProtectedConfigurationProvider.cs
- ImageSourceConverter.cs
- DataGridViewCheckBoxColumn.cs
- BaseTemplateBuildProvider.cs
- DSACryptoServiceProvider.cs
- Repeater.cs
- CloseCollectionAsyncResult.cs
- UriTemplateQueryValue.cs
- SamlAuthenticationStatement.cs
- rsa.cs
- PerformanceCounterCategory.cs
- NetworkInformationException.cs
- XmlILAnnotation.cs
- DesignTimeHTMLTextWriter.cs
- _TLSstream.cs
- ReflectionServiceProvider.cs
- DataSourceCacheDurationConverter.cs
- RefreshPropertiesAttribute.cs
- ListControl.cs
- ClosableStream.cs
- AlphabeticalEnumConverter.cs
- SplitterPanel.cs
- FacetValueContainer.cs
- ToolStripPanelRenderEventArgs.cs
- InstanceStore.cs
- COM2TypeInfoProcessor.cs
- MethodAccessException.cs
- KnownTypes.cs
- TextWriter.cs
- QuadraticBezierSegment.cs
- Quaternion.cs
- CheckBoxBaseAdapter.cs