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
- DefaultBindingPropertyAttribute.cs
- OdbcConnection.cs
- Evidence.cs
- XsdSchemaFileEditor.cs
- HebrewNumber.cs
- SafeProcessHandle.cs
- AppDomainManager.cs
- TypographyProperties.cs
- ConnectionProviderAttribute.cs
- HttpServerUtilityBase.cs
- XmlAutoDetectWriter.cs
- EventLogInformation.cs
- SqlReorderer.cs
- ToolBar.cs
- BCLDebug.cs
- ItemCollection.cs
- TextEndOfLine.cs
- UnknownWrapper.cs
- XPathAncestorQuery.cs
- CodeCommentStatementCollection.cs
- JapaneseCalendar.cs
- Pen.cs
- ParagraphResult.cs
- HtmlShim.cs
- Convert.cs
- OracleFactory.cs
- EmptyStringExpandableObjectConverter.cs
- ListViewItem.cs
- EdgeModeValidation.cs
- NTAccount.cs
- ConfigurationSectionCollection.cs
- OutOfMemoryException.cs
- SecurityPolicySection.cs
- CacheEntry.cs
- MasterPageParser.cs
- FormsAuthenticationTicket.cs
- ConfigXmlElement.cs
- PropertyCollection.cs
- DataColumnChangeEvent.cs
- SiteIdentityPermission.cs
- SessionIDManager.cs
- InlineCollection.cs
- EventMappingSettings.cs
- Method.cs
- PresentationUIStyleResources.cs
- ConfigUtil.cs
- XmlUrlResolver.cs
- LayoutEditorPart.cs
- MailSettingsSection.cs
- Vector3D.cs
- AsyncResult.cs
- ProviderSettings.cs
- FunctionMappingTranslator.cs
- CodeTypeDeclaration.cs
- HttpCachePolicyElement.cs
- SamlAction.cs
- PatternMatcher.cs
- NameObjectCollectionBase.cs
- ValidateNames.cs
- XmlUtf8RawTextWriter.cs
- EnumerableRowCollection.cs
- ThumbButtonInfoCollection.cs
- EntityConnection.cs
- ResXFileRef.cs
- AnchoredBlock.cs
- _FixedSizeReader.cs
- Color.cs
- regiisutil.cs
- Geometry.cs
- HtmlLink.cs
- TextBoxAutomationPeer.cs
- HasCopySemanticsAttribute.cs
- WindowsFormsSynchronizationContext.cs
- CryptoHelper.cs
- OleDbPermission.cs
- RequestContextBase.cs
- ForEach.cs
- SafePEFileHandle.cs
- MetadataPropertyvalue.cs
- UnitControl.cs
- XmlWriterTraceListener.cs
- XPathSingletonIterator.cs
- GradientBrush.cs
- TableRow.cs
- GlyphCache.cs
- EnvironmentPermission.cs
- DateTimeConstantAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- ModelItemExtensions.cs
- httpapplicationstate.cs
- PageRouteHandler.cs
- HtmlInputHidden.cs
- RuleSetCollection.cs
- WebPartConnectionsCloseVerb.cs
- PathHelper.cs
- InkCanvasAutomationPeer.cs
- HtmlButton.cs
- TextPatternIdentifiers.cs
- EnterpriseServicesHelper.cs
- OleDbParameterCollection.cs