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
- HashCodeCombiner.cs
- ThemeableAttribute.cs
- Point4DConverter.cs
- DetailsViewRowCollection.cs
- _AcceptOverlappedAsyncResult.cs
- GZipStream.cs
- NullableConverter.cs
- SecurityTokenInclusionMode.cs
- RuleDefinitions.cs
- TemplateParser.cs
- HexParser.cs
- SyntaxCheck.cs
- AuthenticatingEventArgs.cs
- OpenFileDialog.cs
- NavigationService.cs
- AttachedPropertyMethodSelector.cs
- CorrelationResolver.cs
- figurelength.cs
- GroupJoinQueryOperator.cs
- UnsafeNativeMethodsCLR.cs
- XPathQilFactory.cs
- NativeCompoundFileAPIs.cs
- DbParameterHelper.cs
- Model3DCollection.cs
- Run.cs
- PackageFilter.cs
- Point.cs
- ErrorWebPart.cs
- ImmutablePropertyDescriptorGridEntry.cs
- CollectionChangedEventManager.cs
- DataGridViewCellLinkedList.cs
- UnknownWrapper.cs
- RedistVersionInfo.cs
- Switch.cs
- RepeaterItemEventArgs.cs
- MetaModel.cs
- XsltSettings.cs
- XamlBrushSerializer.cs
- EntityClassGenerator.cs
- CharEntityEncoderFallback.cs
- Query.cs
- SymbolEqualComparer.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- FilterQueryOptionExpression.cs
- DataMemberFieldConverter.cs
- EndpointConfigContainer.cs
- FrameworkObject.cs
- ListCollectionView.cs
- EventManager.cs
- SpeakProgressEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- TrustSection.cs
- OrderedDictionary.cs
- TextBox.cs
- StatusBarAutomationPeer.cs
- XmlArrayItemAttributes.cs
- VisualStyleRenderer.cs
- SiteMapNodeItemEventArgs.cs
- VideoDrawing.cs
- DoubleCollectionValueSerializer.cs
- RawKeyboardInputReport.cs
- NullableBoolConverter.cs
- CultureInfo.cs
- CodeMethodInvokeExpression.cs
- WsdlImporterElementCollection.cs
- XmlSiteMapProvider.cs
- XmlCharacterData.cs
- NodeLabelEditEvent.cs
- XmlWellformedWriter.cs
- bindurihelper.cs
- PerspectiveCamera.cs
- PtsHelper.cs
- PointUtil.cs
- DocumentSchemaValidator.cs
- HttpRuntimeSection.cs
- SqlIdentifier.cs
- MetadataArtifactLoaderCompositeFile.cs
- ImageMapEventArgs.cs
- WebPartDescription.cs
- EtwTrace.cs
- ChannelSinkStacks.cs
- WarningException.cs
- DropDownButton.cs
- ReflectionHelper.cs
- NameScopePropertyAttribute.cs
- RowParagraph.cs
- PathGeometry.cs
- XmlSchemaResource.cs
- VideoDrawing.cs
- PersistStreamTypeWrapper.cs
- ContainerSelectorActiveEvent.cs
- WebPartConnectionsDisconnectVerb.cs
- _Rfc2616CacheValidators.cs
- ScrollItemProviderWrapper.cs
- Rule.cs
- LoginCancelEventArgs.cs
- SqlMethodCallConverter.cs
- COM2Properties.cs
- HtmlTable.cs
- ZipIOExtraFieldPaddingElement.cs