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
- GroupLabel.cs
- hwndwrapper.cs
- FormsAuthenticationConfiguration.cs
- PolicyStatement.cs
- FormsAuthenticationConfiguration.cs
- XmlILStorageConverter.cs
- PerformanceCounterPermissionEntry.cs
- DataSourceNameHandler.cs
- InfoCardBaseException.cs
- MinimizableAttributeTypeConverter.cs
- ResourceBinder.cs
- FunctionUpdateCommand.cs
- CoreSwitches.cs
- DataGridTableCollection.cs
- DuplicateWaitObjectException.cs
- CngKeyCreationParameters.cs
- HostingPreferredMapPath.cs
- RootBrowserWindowProxy.cs
- GeneratedCodeAttribute.cs
- XsltFunctions.cs
- PathData.cs
- MsmqInputChannelListenerBase.cs
- documentsequencetextcontainer.cs
- TextInfo.cs
- PropertyEmitterBase.cs
- ExpressionLexer.cs
- UnsafeNativeMethodsCLR.cs
- PrintPreviewGraphics.cs
- LoginUtil.cs
- DecimalStorage.cs
- TaskResultSetter.cs
- AppSettingsExpressionBuilder.cs
- SmtpTransport.cs
- CustomErrorCollection.cs
- WindowsFormsSectionHandler.cs
- DoubleLinkListEnumerator.cs
- WebPartMenu.cs
- ManualResetEvent.cs
- ContentWrapperAttribute.cs
- FilterRepeater.cs
- AuthorizationSection.cs
- Tablet.cs
- CodeValidator.cs
- Constraint.cs
- SqlConnectionFactory.cs
- TableRowGroupCollection.cs
- LabelLiteral.cs
- FrugalMap.cs
- XmlSchemaExporter.cs
- EntityWrapperFactory.cs
- HttpCacheParams.cs
- ColumnHeaderCollectionEditor.cs
- ScopedKnownTypes.cs
- MDIWindowDialog.cs
- TraceSection.cs
- Executor.cs
- HybridObjectCache.cs
- VectorAnimationUsingKeyFrames.cs
- PrimitiveType.cs
- CatalogZone.cs
- StringAnimationUsingKeyFrames.cs
- TraceUtils.cs
- TypeLoadException.cs
- OdbcError.cs
- XamlPathDataSerializer.cs
- DataSet.cs
- contentDescriptor.cs
- EventProxy.cs
- WebPartEditorCancelVerb.cs
- BinaryCommonClasses.cs
- DbDataSourceEnumerator.cs
- OracleConnectionString.cs
- RegexWriter.cs
- WindowsFormsHostPropertyMap.cs
- NonVisualControlAttribute.cs
- _Connection.cs
- SchemaElementDecl.cs
- ExtensionDataObject.cs
- TextRunTypographyProperties.cs
- StoreItemCollection.cs
- ISAPIApplicationHost.cs
- JsonReaderDelegator.cs
- FlowPanelDesigner.cs
- IIS7UserPrincipal.cs
- EndpointReference.cs
- TransactionManager.cs
- XmlUrlResolver.cs
- FormViewPageEventArgs.cs
- XmlIlGenerator.cs
- AccessorTable.cs
- Roles.cs
- versioninfo.cs
- ListViewHitTestInfo.cs
- SafeArchiveContext.cs
- ConfigXmlCDataSection.cs
- TextElementCollection.cs
- oledbconnectionstring.cs
- PrintControllerWithStatusDialog.cs
- OciEnlistContext.cs
- ObjectDataSourceSelectingEventArgs.cs