Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / HtmlLiteralTextAdapter.cs / 1305376 / HtmlLiteralTextAdapter.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Drawing;
using System.Security.Permissions;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource
#else
namespace System.Web.UI.MobileControls.Adapters
#endif
{
/*
* HtmlLiteralTextAdapter class.
*
* Copyright (c) 2000 Microsoft Corporation
*/
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class HtmlLiteralTextAdapter : HtmlControlAdapter
{
///
protected new LiteralText Control
{
get
{
return (LiteralText)base.Control;
}
}
// calls the more specific render methods
///
public override void Render(HtmlMobileTextWriter writer)
{
String text = Control.PagedText;
writer.EnterStyle(Style);
writer.WriteText(text, true);
writer.ExitStyle(Style, Control.BreakAfter);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Drawing;
using System.Security.Permissions;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource
#else
namespace System.Web.UI.MobileControls.Adapters
#endif
{
/*
* HtmlLiteralTextAdapter class.
*
* Copyright (c) 2000 Microsoft Corporation
*/
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class HtmlLiteralTextAdapter : HtmlControlAdapter
{
///
protected new LiteralText Control
{
get
{
return (LiteralText)base.Control;
}
}
// calls the more specific render methods
///
public override void Render(HtmlMobileTextWriter writer)
{
String text = Control.PagedText;
writer.EnterStyle(Style);
writer.WriteText(text, true);
writer.ExitStyle(Style, Control.BreakAfter);
}
}
}
// 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
- x509store.cs
- SocketInformation.cs
- DataGridViewColumnHeaderCell.cs
- TransformGroup.cs
- CacheVirtualItemsEvent.cs
- BooleanStorage.cs
- HandlerBase.cs
- XsltException.cs
- safemediahandle.cs
- MailBnfHelper.cs
- ProxyWebPartManager.cs
- URLMembershipCondition.cs
- LinkClickEvent.cs
- Walker.cs
- OleCmdHelper.cs
- FormsAuthentication.cs
- KeyNameIdentifierClause.cs
- DataServiceQuery.cs
- AuthenticateEventArgs.cs
- EpmContentSerializer.cs
- Number.cs
- TypeCodeDomSerializer.cs
- ByteStream.cs
- ProfilePropertyNameValidator.cs
- MSAAEventDispatcher.cs
- Dump.cs
- _DomainName.cs
- XamlPointCollectionSerializer.cs
- WindowsFormsSectionHandler.cs
- TextMetrics.cs
- DefaultValueMapping.cs
- InvalidFilterCriteriaException.cs
- DoubleSumAggregationOperator.cs
- ScrollProperties.cs
- SuppressMessageAttribute.cs
- OledbConnectionStringbuilder.cs
- SafeArrayRankMismatchException.cs
- GenericUriParser.cs
- System.Data_BID.cs
- Button.cs
- ProxyHwnd.cs
- HelpEvent.cs
- httpapplicationstate.cs
- HtmlInputCheckBox.cs
- MouseBinding.cs
- GroupBox.cs
- SizeConverter.cs
- DrawListViewSubItemEventArgs.cs
- AttributeProviderAttribute.cs
- Cursor.cs
- OpenTypeLayoutCache.cs
- IriParsingElement.cs
- SlipBehavior.cs
- MinimizableAttributeTypeConverter.cs
- XmlSchemaAttributeGroup.cs
- FragmentNavigationEventArgs.cs
- MailSettingsSection.cs
- ResourceType.cs
- ToolStripGripRenderEventArgs.cs
- BookmarkNameHelper.cs
- EntryPointNotFoundException.cs
- CodeComment.cs
- BridgeDataRecord.cs
- TcpHostedTransportConfiguration.cs
- BaseComponentEditor.cs
- BitmapData.cs
- InputLanguageCollection.cs
- CalculatedColumn.cs
- _WebProxyDataBuilder.cs
- OdbcFactory.cs
- EditorZoneBase.cs
- CopyCodeAction.cs
- ToolStripTextBox.cs
- DataGridViewTextBoxColumn.cs
- ContainerParagraph.cs
- ConfigurationElement.cs
- Lookup.cs
- WhitespaceRuleReader.cs
- FrameworkTemplate.cs
- FactoryId.cs
- EventSinkActivity.cs
- NativeMethods.cs
- CheckBoxStandardAdapter.cs
- WebSysDisplayNameAttribute.cs
- XmlObjectSerializerReadContextComplexJson.cs
- _NestedMultipleAsyncResult.cs
- SqlBulkCopyColumnMapping.cs
- PolicyException.cs
- HttpCacheVaryByContentEncodings.cs
- HttpStreamXmlDictionaryWriter.cs
- CompilerGeneratedAttribute.cs
- oledbconnectionstring.cs
- FunctionQuery.cs
- ReachFixedDocumentSerializer.cs
- FilterException.cs
- DeviceContext2.cs
- FixedElement.cs
- XPathPatternBuilder.cs
- LiteralTextParser.cs
- CodeTypeOfExpression.cs