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
- RequestResizeEvent.cs
- ResourcePermissionBaseEntry.cs
- DesignerLoader.cs
- UriTemplateMatchException.cs
- StringAttributeCollection.cs
- FontStyle.cs
- MsmqBindingFilter.cs
- TdsValueSetter.cs
- RegexCaptureCollection.cs
- WebHttpSecurityElement.cs
- DocumentPageViewAutomationPeer.cs
- XmlTextAttribute.cs
- TokenizerHelper.cs
- SimpleApplicationHost.cs
- Rotation3DAnimation.cs
- InvalidProgramException.cs
- SessionEndingEventArgs.cs
- XPathNavigatorKeyComparer.cs
- WindowsPrincipal.cs
- DataBoundControl.cs
- TextSchema.cs
- ProxyGenerationError.cs
- BinaryUtilClasses.cs
- NamedPipeTransportSecurityElement.cs
- EpmContentSerializerBase.cs
- SerializationEventsCache.cs
- XmlSerializerSection.cs
- DataGridViewIntLinkedList.cs
- PageThemeBuildProvider.cs
- PropertyChangeTracker.cs
- BlockingCollection.cs
- HuffModule.cs
- QueryContinueDragEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- XmlObjectSerializer.cs
- ImageInfo.cs
- XmlWrappingWriter.cs
- RectAnimationBase.cs
- TextAdaptor.cs
- AutoGeneratedField.cs
- InkSerializer.cs
- CounterCreationDataConverter.cs
- WebPartMinimizeVerb.cs
- MethodAccessException.cs
- TypeExtensionSerializer.cs
- Trigger.cs
- QilInvoke.cs
- TraceXPathNavigator.cs
- UIPermission.cs
- ExtendedProtectionPolicy.cs
- HttpContext.cs
- ConfigurationValidatorBase.cs
- UserControlCodeDomTreeGenerator.cs
- RepeatInfo.cs
- IPHostEntry.cs
- NoClickablePointException.cs
- MSAAWinEventWrap.cs
- AutomationIdentifier.cs
- PerformanceCounterManager.cs
- SqlNodeTypeOperators.cs
- HMACSHA256.cs
- KnownTypeAttribute.cs
- StringUtil.cs
- RootProfilePropertySettingsCollection.cs
- HwndAppCommandInputProvider.cs
- ImageDrawing.cs
- RecipientInfo.cs
- CodeSnippetExpression.cs
- SqlMultiplexer.cs
- CharStorage.cs
- DropSource.cs
- Socket.cs
- Single.cs
- MetafileHeader.cs
- EntityStoreSchemaFilterEntry.cs
- DelegateSerializationHolder.cs
- ErrorProvider.cs
- ConfigDefinitionUpdates.cs
- AlphaSortedEnumConverter.cs
- ContextMenuStripActionList.cs
- RadioButtonList.cs
- RequestDescription.cs
- EntitySet.cs
- DeflateEmulationStream.cs
- ConnectionStringSettings.cs
- JsonXmlDataContract.cs
- ReaderWriterLockWrapper.cs
- DataMisalignedException.cs
- RankException.cs
- DbConnectionPoolCounters.cs
- AsmxEndpointPickerExtension.cs
- DataProtection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SymbolTable.cs
- MemberInfoSerializationHolder.cs
- cookieexception.cs
- ZoneIdentityPermission.cs
- LocalValueEnumerator.cs
- AxDesigner.cs
- AssemblyNameProxy.cs