Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / WmlCommandAdapter.cs / 1305376 / WmlCommandAdapter.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.Security.Permissions;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource
#else
namespace System.Web.UI.MobileControls.Adapters
#endif
{
/*
* WmlCommandAdapter 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 WmlCommandAdapter : WmlControlAdapter
{
///
protected new Command Control
{
get
{
return (Command)base.Control;
}
}
///
public override void Render(WmlMobileTextWriter writer)
{
writer.EnterStyle(Style);
RenderSubmitEvent(writer, Control.SoftkeyLabel, Control.Text, Control.BreakAfter);
writer.ExitStyle(Style);
}
}
}
// 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.Security.Permissions;
#if COMPILING_FOR_SHIPPED_SOURCE
namespace System.Web.UI.MobileControls.ShippedAdapterSource
#else
namespace System.Web.UI.MobileControls.Adapters
#endif
{
/*
* WmlCommandAdapter 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 WmlCommandAdapter : WmlControlAdapter
{
///
protected new Command Control
{
get
{
return (Command)base.Control;
}
}
///
public override void Render(WmlMobileTextWriter writer)
{
writer.EnterStyle(Style);
RenderSubmitEvent(writer, Control.SoftkeyLabel, Control.Text, Control.BreakAfter);
writer.ExitStyle(Style);
}
}
}
// 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
- TimelineCollection.cs
- MetadataArtifactLoaderCompositeFile.cs
- RegisteredScript.cs
- QilFactory.cs
- RangeValuePatternIdentifiers.cs
- Frame.cs
- TransportOutputChannel.cs
- PositiveTimeSpanValidator.cs
- Deflater.cs
- InlineCategoriesDocument.cs
- PathFigure.cs
- QilStrConcatenator.cs
- WaitForChangedResult.cs
- InvalidWMPVersionException.cs
- StringOutput.cs
- M3DUtil.cs
- RelationalExpressions.cs
- AtomMaterializer.cs
- FilteredAttributeCollection.cs
- Flowchart.cs
- InfoCardSymmetricCrypto.cs
- ServiceHostFactory.cs
- TraceSwitch.cs
- InvalidOleVariantTypeException.cs
- TextEndOfParagraph.cs
- ILGenerator.cs
- GridViewUpdatedEventArgs.cs
- CompensateDesigner.cs
- DataServiceException.cs
- ChannelManager.cs
- Statements.cs
- UrlMappingsModule.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SafeEventLogWriteHandle.cs
- ItemType.cs
- EnvelopedPkcs7.cs
- ContainsRowNumberChecker.cs
- IntMinMaxAggregationOperator.cs
- ManagementException.cs
- OrderablePartitioner.cs
- TableItemStyle.cs
- SqlBulkCopy.cs
- UniqueEventHelper.cs
- StringArrayEditor.cs
- SecurityPolicyVersion.cs
- TagPrefixInfo.cs
- DBSqlParserTableCollection.cs
- NullableFloatAverageAggregationOperator.cs
- CompiledScopeCriteria.cs
- ProcessHostFactoryHelper.cs
- DataGridViewTopRowAccessibleObject.cs
- PrivateFontCollection.cs
- GridViewRowEventArgs.cs
- ChannelBinding.cs
- TrustSection.cs
- ObservableCollectionDefaultValueFactory.cs
- WinEventQueueItem.cs
- PrimitiveDataContract.cs
- ColorTranslator.cs
- RuntimeConfigLKG.cs
- BaseParser.cs
- ResXFileRef.cs
- NetCodeGroup.cs
- XamlClipboardData.cs
- PropertyDescriptorCollection.cs
- ViewStateException.cs
- EmptyQuery.cs
- RsaKeyIdentifierClause.cs
- OdbcParameterCollection.cs
- Claim.cs
- EntityDescriptor.cs
- CalculatedColumn.cs
- DataGridViewHeaderCell.cs
- Rule.cs
- MSAAWinEventWrap.cs
- AnnotationAuthorChangedEventArgs.cs
- StrokeNodeOperations.cs
- PropertyChangedEventManager.cs
- ContentPlaceHolder.cs
- LabelEditEvent.cs
- JsonDeserializer.cs
- RunWorkerCompletedEventArgs.cs
- DataGridSortCommandEventArgs.cs
- TransformProviderWrapper.cs
- CqlGenerator.cs
- SoapTypeAttribute.cs
- DataTableReaderListener.cs
- SynchronizedInputProviderWrapper.cs
- SqlDataAdapter.cs
- EventListener.cs
- SqlFormatter.cs
- StringInfo.cs
- QilIterator.cs
- MetafileHeader.cs
- DoubleAnimationBase.cs
- TableAdapterManagerHelper.cs
- Message.cs
- HttpGetProtocolImporter.cs
- TearOffProxy.cs
- NaturalLanguageHyphenator.cs