Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / RequiredFieldValidator.cs / 1305376 / RequiredFieldValidator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Web; using System.Web.UI; using System.Web.UI.Design.WebControls; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using WebCntrls = System.Web.UI.WebControls; using System.Security.Permissions; namespace System.Web.UI.MobileControls { /* * Mobile RequiredFieldValidator class. * The RequiredFieldValidator makes the input control it is associated with * a required field. Validation fails if the value of the input control is * no different from its initial value. * * Copyright (c) 2000 Microsoft Corporation */ ///[ ToolboxData("<{0}:RequiredFieldValidator runat=\"server\" ErrorMessage=\"RequiredFieldValidator\">{0}:RequiredFieldValidator>"), ToolboxItem("System.Web.UI.Design.WebControlToolboxItem, " + AssemblyRef.SystemDesign) ] [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 RequiredFieldValidator : BaseValidator { private WebCntrls.RequiredFieldValidator _webRequiredFieldValidator; /// protected override WebCntrls.BaseValidator CreateWebValidator() { _webRequiredFieldValidator = new WebCntrls.RequiredFieldValidator(); return _webRequiredFieldValidator; } //////////////////////////////////////////////////////////////////////// // Mimic the properties exposed in the original RequiredFieldValidator. // The properties are got and set directly from the original RequiredFieldValidator. //////////////////////////////////////////////////////////////////////// /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Behavior), MobileSysDescription(SR.RequiredFieldValidator_InitialValue) ] public String InitialValue { get { return _webRequiredFieldValidator.InitialValue; } set { _webRequiredFieldValidator.InitialValue = value; } } /// protected override bool EvaluateIsValid() { return EvaluateIsValidInternal(); } } } // 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
- FreezableCollection.cs
- SourceInterpreter.cs
- NotSupportedException.cs
- Point3DCollectionConverter.cs
- InkCanvasFeedbackAdorner.cs
- FormViewPageEventArgs.cs
- CellLabel.cs
- HttpListenerRequest.cs
- HostSecurityManager.cs
- BitStream.cs
- login.cs
- XmlDataSource.cs
- SQLStringStorage.cs
- Pkcs7Signer.cs
- ClientRuntimeConfig.cs
- OdbcConnectionString.cs
- DateTimeSerializationSection.cs
- UnicastIPAddressInformationCollection.cs
- PrtCap_Public.cs
- DescendantQuery.cs
- WebMessageBodyStyleHelper.cs
- SqlInternalConnectionTds.cs
- InternalConfigConfigurationFactory.cs
- UriExt.cs
- DesignerForm.cs
- XmlSchemaDatatype.cs
- WinFormsUtils.cs
- GreenMethods.cs
- RegisterResponseInfo.cs
- activationcontext.cs
- WebPartConnectionsDisconnectVerb.cs
- WindowsAltTab.cs
- DateTimeHelper.cs
- MinimizableAttributeTypeConverter.cs
- XPathConvert.cs
- SystemSounds.cs
- SystemResources.cs
- counter.cs
- ExpressionEvaluator.cs
- MediaContextNotificationWindow.cs
- PeerNearMe.cs
- SyndicationItemFormatter.cs
- ResumeStoryboard.cs
- Point3DCollection.cs
- DelegatingTypeDescriptionProvider.cs
- HttpApplicationFactory.cs
- AddressAccessDeniedException.cs
- KeyProperty.cs
- OperationDescriptionCollection.cs
- SafeLibraryHandle.cs
- PixelFormats.cs
- FrameDimension.cs
- Module.cs
- ExpressionPrefixAttribute.cs
- WsatConfiguration.cs
- SqlGenerator.cs
- FrameworkElementFactoryMarkupObject.cs
- DataGridParentRows.cs
- ClassicBorderDecorator.cs
- DecimalKeyFrameCollection.cs
- DelegateArgumentValue.cs
- DataGridViewCellValueEventArgs.cs
- DataTablePropertyDescriptor.cs
- MetadataArtifactLoaderCompositeFile.cs
- login.cs
- XhtmlBasicPanelAdapter.cs
- Choices.cs
- ResourceExpressionEditor.cs
- DNS.cs
- EncodingConverter.cs
- SQLMoney.cs
- OverflowException.cs
- SelectionGlyph.cs
- AutoGeneratedField.cs
- QueryStringHandler.cs
- JsonQNameDataContract.cs
- EntityAdapter.cs
- InfoCardTraceRecord.cs
- SvcMapFileSerializer.cs
- SqlException.cs
- CheckBoxBaseAdapter.cs
- WebPartMinimizeVerb.cs
- List.cs
- ReaderWriterLock.cs
- WorkflowViewManager.cs
- SrgsRuleRef.cs
- XmlnsCompatibleWithAttribute.cs
- WindowsListViewItemCheckBox.cs
- Encoder.cs
- DesignerSerializerAttribute.cs
- AppendHelper.cs
- DuplicateWaitObjectException.cs
- LostFocusEventManager.cs
- DefaultTextStore.cs
- ErrorWebPart.cs
- DbParameterHelper.cs
- KeyMatchBuilder.cs
- PreviewPrintController.cs
- Expression.cs
- DataBindingValueUIHandler.cs