Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / HtmlValidatorAdapter.cs / 1305376 / HtmlValidatorAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.IO; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.MobileControls; using System.Web.UI.WebControls; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * HtmlValidatorAdapter provides the html device functionality for * Validator controls. * * 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 HtmlValidatorAdapter : HtmlControlAdapter { /// protected new BaseValidator Control { get { return (BaseValidator)base.Control; } } /// public override void Render(HtmlMobileTextWriter writer) { if (!Control.IsValid && Control.Display != ValidatorDisplay.None) { writer.EnterStyle(Style); if (!String.IsNullOrEmpty(Control.Text)) { writer.WriteText(Control.Text, true); } else if (!String.IsNullOrEmpty(Control.ErrorMessage)) { writer.WriteText(Control.ErrorMessage, 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.HtmlControls; using System.Web.UI.MobileControls; using System.Web.UI.WebControls; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * HtmlValidatorAdapter provides the html device functionality for * Validator controls. * * 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 HtmlValidatorAdapter : HtmlControlAdapter { /// protected new BaseValidator Control { get { return (BaseValidator)base.Control; } } /// public override void Render(HtmlMobileTextWriter writer) { if (!Control.IsValid && Control.Display != ValidatorDisplay.None) { writer.EnterStyle(Style); if (!String.IsNullOrEmpty(Control.Text)) { writer.WriteText(Control.Text, true); } else if (!String.IsNullOrEmpty(Control.ErrorMessage)) { writer.WriteText(Control.ErrorMessage, 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
- DataControlButton.cs
- ComponentDispatcherThread.cs
- DataSourceBooleanViewSchemaConverter.cs
- PathFigure.cs
- CommentEmitter.cs
- Descriptor.cs
- ModelUIElement3D.cs
- ParentControlDesigner.cs
- EntityViewGenerationAttribute.cs
- GeneratedCodeAttribute.cs
- BindValidator.cs
- CqlParserHelpers.cs
- CacheVirtualItemsEvent.cs
- StylusPointPropertyInfoDefaults.cs
- SelectedCellsCollection.cs
- HtmlShimManager.cs
- NumberAction.cs
- TCEAdapterGenerator.cs
- ImageListDesigner.cs
- HostingEnvironmentException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ViewCellSlot.cs
- FormatterServices.cs
- BindingWorker.cs
- RootProfilePropertySettingsCollection.cs
- Timeline.cs
- DocumentGridPage.cs
- RequestCache.cs
- RegexWorker.cs
- ConfigurationPropertyAttribute.cs
- Odbc32.cs
- OleDbCommandBuilder.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewLayoutData.cs
- SizeConverter.cs
- ActivityMarkupSerializer.cs
- GenericWebPart.cs
- SizeIndependentAnimationStorage.cs
- DesignerLoader.cs
- Rfc2898DeriveBytes.cs
- safex509handles.cs
- CompareValidator.cs
- BatchWriter.cs
- EntityDataSourceDesigner.cs
- UndoEngine.cs
- DrawingContextDrawingContextWalker.cs
- ImageButton.cs
- DoubleLink.cs
- OleDbInfoMessageEvent.cs
- RuleSettings.cs
- ExtenderControl.cs
- TextContainer.cs
- IisTraceWebEventProvider.cs
- DisplayMemberTemplateSelector.cs
- InternalSendMessage.cs
- DownloadProgressEventArgs.cs
- Bold.cs
- AccessControlList.cs
- EventPrivateKey.cs
- SortQuery.cs
- PropertyNames.cs
- CodeChecksumPragma.cs
- XPathArrayIterator.cs
- ManagedWndProcTracker.cs
- FileDetails.cs
- SystemGatewayIPAddressInformation.cs
- ImageMetadata.cs
- HtmlInputRadioButton.cs
- ItemCheckEvent.cs
- SimpleColumnProvider.cs
- TrackingServices.cs
- ExceptionUtil.cs
- ResponseStream.cs
- AsyncResult.cs
- AppLevelCompilationSectionCache.cs
- ReflectEventDescriptor.cs
- ReadOnlyHierarchicalDataSource.cs
- SequentialOutput.cs
- SchemaElement.cs
- BevelBitmapEffect.cs
- WorkflowServiceHost.cs
- ZipPackagePart.cs
- QueryNode.cs
- InvalidEnumArgumentException.cs
- CacheRequest.cs
- SystemIPAddressInformation.cs
- VectorValueSerializer.cs
- AbstractExpressions.cs
- DynamicMethod.cs
- XmlParserContext.cs
- ToolStripStatusLabel.cs
- TraceUtility.cs
- WindowsFormsSynchronizationContext.cs
- AssociationType.cs
- CodeBinaryOperatorExpression.cs
- MaskInputRejectedEventArgs.cs
- EventRecordWrittenEventArgs.cs
- XmlAnyElementAttributes.cs
- ServiceDescriptionSerializer.cs
- ComponentSerializationService.cs