Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UpdateRecord.cs
- TextSchema.cs
- ReflectionHelper.cs
- Range.cs
- WebServiceData.cs
- DrawingImage.cs
- DeclarativeCatalogPart.cs
- IPCCacheManager.cs
- FreezableOperations.cs
- Int16Converter.cs
- ConfigurationProperty.cs
- EntityConnectionStringBuilder.cs
- AsymmetricKeyExchangeFormatter.cs
- XPathNavigatorKeyComparer.cs
- ManifestResourceInfo.cs
- FlowDocumentReaderAutomationPeer.cs
- safePerfProviderHandle.cs
- HttpStreamFormatter.cs
- EncodingInfo.cs
- Decoder.cs
- Int32KeyFrameCollection.cs
- ScaleTransform.cs
- Point3DAnimation.cs
- SoapInteropTypes.cs
- ColumnReorderedEventArgs.cs
- NamedPermissionSet.cs
- FieldValue.cs
- CheckPair.cs
- OleDbCommand.cs
- RectAnimationUsingKeyFrames.cs
- PauseStoryboard.cs
- InkPresenter.cs
- DataGridColumnCollectionEditor.cs
- PointAnimationUsingKeyFrames.cs
- Delay.cs
- XmlSchemaException.cs
- UserUseLicenseDictionaryLoader.cs
- OperationFormatStyle.cs
- RSACryptoServiceProvider.cs
- LineInfo.cs
- ImageFormatConverter.cs
- BackStopAuthenticationModule.cs
- MethodBuilderInstantiation.cs
- OverflowException.cs
- CallId.cs
- Emitter.cs
- InsufficientMemoryException.cs
- DateTimeOffsetConverter.cs
- RequestDescription.cs
- BaseTemplateParser.cs
- EventProviderWriter.cs
- ReflectionTypeLoadException.cs
- CodeExporter.cs
- DispatcherProcessingDisabled.cs
- Renderer.cs
- SecondaryIndex.cs
- WebPartMenuStyle.cs
- MgmtResManager.cs
- MarkedHighlightComponent.cs
- MenuTracker.cs
- HttpClientCertificate.cs
- BodyWriter.cs
- HttpPostProtocolImporter.cs
- Pool.cs
- NetDispatcherFaultException.cs
- ModelServiceImpl.cs
- SqlUtils.cs
- FixedSOMTextRun.cs
- FloatUtil.cs
- MessageQueueCriteria.cs
- ExternalException.cs
- AttributeUsageAttribute.cs
- BinaryFormatter.cs
- WebPartActionVerb.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlNodeList.cs
- ListControlBoundActionList.cs
- CommonDialog.cs
- EntityViewContainer.cs
- WebPartDescription.cs
- InfoCard.cs
- NavigationProperty.cs
- NavigateEvent.cs
- BufferedReadStream.cs
- SocketAddress.cs
- WindowsAuthenticationModule.cs
- QuaternionAnimation.cs
- ExpandableObjectConverter.cs
- UserControl.cs
- TypeHelper.cs
- JavaScriptString.cs
- Random.cs
- UnicastIPAddressInformationCollection.cs
- WindowsStatusBar.cs
- ByteStorage.cs
- MarshalByRefObject.cs
- DoubleLinkList.cs
- Tool.cs
- XmlSortKeyAccumulator.cs
- Shared.cs