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
- InternalPermissions.cs
- JoinCqlBlock.cs
- ToolBarButtonClickEvent.cs
- ColorContextHelper.cs
- StylusEventArgs.cs
- ScalarType.cs
- HwndSource.cs
- CheckoutException.cs
- GroupedContextMenuStrip.cs
- TransformPatternIdentifiers.cs
- ChannelSinkStacks.cs
- XmlSchemaParticle.cs
- AutomationTextAttribute.cs
- XmlDeclaration.cs
- X509UI.cs
- BlockCollection.cs
- ObjectQueryProvider.cs
- OneWayBindingElement.cs
- CharacterMetricsDictionary.cs
- FigureParagraph.cs
- Line.cs
- RevocationPoint.cs
- ComponentEditorForm.cs
- RichTextBox.cs
- AggregationMinMaxHelpers.cs
- TrackingValidationObjectDictionary.cs
- MappingException.cs
- DynamicDataManager.cs
- SchemaInfo.cs
- HttpProfileGroupBase.cs
- DataSet.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SoapFault.cs
- WebRequestModulesSection.cs
- UserMapPath.cs
- NativeMethods.cs
- EntityTypeBase.cs
- ArgumentException.cs
- ResourceBinder.cs
- ContainerParagraph.cs
- ModuleConfigurationInfo.cs
- EditorPartCollection.cs
- MasterPageBuildProvider.cs
- RootProfilePropertySettingsCollection.cs
- MultiByteCodec.cs
- WebPartVerbsEventArgs.cs
- SerializationObjectManager.cs
- FontWeight.cs
- assemblycache.cs
- Trace.cs
- OleDbStruct.cs
- ReadWriteObjectLock.cs
- DBPropSet.cs
- DispatcherExceptionFilterEventArgs.cs
- XmlChildNodes.cs
- GraphicsPath.cs
- EqualityArray.cs
- UriSectionData.cs
- WithStatement.cs
- SourceLineInfo.cs
- EditorZone.cs
- PublisherIdentityPermission.cs
- SqlBuilder.cs
- ZoneButton.cs
- CustomCredentialPolicy.cs
- JournalEntryStack.cs
- EventWaitHandleSecurity.cs
- WpfWebRequestHelper.cs
- _LocalDataStore.cs
- TraceHwndHost.cs
- SqlDataSource.cs
- Configuration.cs
- WinFormsUtils.cs
- Context.cs
- StopStoryboard.cs
- ConfigurationPermission.cs
- TextSchema.cs
- HtmlTitle.cs
- WizardForm.cs
- ConnectionConsumerAttribute.cs
- SizeAnimationBase.cs
- JsonSerializer.cs
- Matrix3DStack.cs
- NetTcpBinding.cs
- HTTPNotFoundHandler.cs
- NotifyParentPropertyAttribute.cs
- CompilationPass2Task.cs
- ExpandedWrapper.cs
- XmlAttribute.cs
- ScrollBar.cs
- BamlResourceSerializer.cs
- SelectedGridItemChangedEvent.cs
- NetStream.cs
- AspProxy.cs
- DomNameTable.cs
- DataServiceQuery.cs
- HttpDictionary.cs
- DbFunctionCommandTree.cs
- Wizard.cs
- WhitespaceRuleReader.cs