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
- NativeMethods.cs
- RegisteredScript.cs
- SqlProviderUtilities.cs
- IconBitmapDecoder.cs
- SequentialWorkflowHeaderFooter.cs
- FastPropertyAccessor.cs
- DateBoldEvent.cs
- BooleanConverter.cs
- FunctionMappingTranslator.cs
- ServiceMetadataContractBehavior.cs
- followingquery.cs
- SmtpFailedRecipientException.cs
- ControlCachePolicy.cs
- LicenseProviderAttribute.cs
- UndirectedGraph.cs
- LocatorBase.cs
- InputEventArgs.cs
- QueryActivatableWorkflowsCommand.cs
- DataSet.cs
- Int32Rect.cs
- AccessibilityHelperForVista.cs
- RelatedView.cs
- ToolboxControl.cs
- RsaSecurityTokenAuthenticator.cs
- MexHttpBindingCollectionElement.cs
- SecurityElement.cs
- CheckedListBox.cs
- ServerIdentity.cs
- DataListGeneralPage.cs
- EnumBuilder.cs
- BuildDependencySet.cs
- StreamInfo.cs
- xsdvalidator.cs
- HtmlInputSubmit.cs
- TraceSwitch.cs
- WindowCollection.cs
- ResourceManagerWrapper.cs
- TextViewSelectionProcessor.cs
- RC2CryptoServiceProvider.cs
- BaseServiceProvider.cs
- FamilyTypefaceCollection.cs
- PeerReferralPolicy.cs
- EventToken.cs
- ThreadAbortException.cs
- RegexParser.cs
- HttpListenerRequestUriBuilder.cs
- QueryParameter.cs
- SqlTrackingQuery.cs
- TargetConverter.cs
- FigureParaClient.cs
- InkCollectionBehavior.cs
- FlowDocumentReaderAutomationPeer.cs
- ParameterCollectionEditor.cs
- TextWriter.cs
- ThreadExceptionEvent.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DecimalFormatter.cs
- Graph.cs
- VSWCFServiceContractGenerator.cs
- GenericEnumerator.cs
- CodeBlockBuilder.cs
- DurableErrorHandler.cs
- WmlPanelAdapter.cs
- LoginUtil.cs
- ThreadInterruptedException.cs
- BridgeDataRecord.cs
- CodeTypeDelegate.cs
- ArglessEventHandlerProxy.cs
- TableRowGroup.cs
- MainMenu.cs
- SQLSingleStorage.cs
- ServicePointManagerElement.cs
- Utils.cs
- IItemContainerGenerator.cs
- XmlSchemaObjectTable.cs
- SchemaImporterExtensionsSection.cs
- ModuleElement.cs
- ExpressionList.cs
- DbDeleteCommandTree.cs
- GeometryGroup.cs
- TimeSpanValidator.cs
- PrintDocument.cs
- Setter.cs
- WebServiceBindingAttribute.cs
- HyperLink.cs
- DbReferenceCollection.cs
- WindowsTooltip.cs
- Style.cs
- PtsHelper.cs
- CellCreator.cs
- SystemTcpStatistics.cs
- DbTransaction.cs
- Number.cs
- UserControlAutomationPeer.cs
- Stroke2.cs
- ImageClickEventArgs.cs
- BuildProviderCollection.cs
- XXXInfos.cs
- InvalidPrinterException.cs
- TakeOrSkipWhileQueryOperator.cs