Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ServerValidateEventArgs.cs / 1 / ServerValidateEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for the
/// event of the .
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ServerValidateEventArgs : EventArgs {
private bool isValid;
private string value;
///
/// Initializes a new instance of the
/// class.
///
public ServerValidateEventArgs(string value, bool isValid) : base() {
this.isValid = isValid;
this.value = value;
}
///
/// Gets the string value to validate.
///
public string Value {
get {
return value;
}
}
///
/// Gets or sets whether the input is valid.
///
public bool IsValid {
get {
return isValid;
}
set {
this.isValid = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for the
/// event of the .
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ServerValidateEventArgs : EventArgs {
private bool isValid;
private string value;
///
/// Initializes a new instance of the
/// class.
///
public ServerValidateEventArgs(string value, bool isValid) : base() {
this.isValid = isValid;
this.value = value;
}
///
/// Gets the string value to validate.
///
public string Value {
get {
return value;
}
}
///
/// Gets or sets whether the input is valid.
///
public bool IsValid {
get {
return isValid;
}
set {
this.isValid = value;
}
}
}
}
// 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
- ByteKeyFrameCollection.cs
- FilteredSchemaElementLookUpTable.cs
- HWStack.cs
- ContextStaticAttribute.cs
- XmlCharCheckingReader.cs
- GeneralTransform.cs
- GridPatternIdentifiers.cs
- PlanCompilerUtil.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ProjectionPruner.cs
- ControlCollection.cs
- WebPartTracker.cs
- PublisherMembershipCondition.cs
- TreeViewEvent.cs
- FileAuthorizationModule.cs
- ChangeInterceptorAttribute.cs
- Decorator.cs
- TextPatternIdentifiers.cs
- PropertyGridView.cs
- SinglePageViewer.cs
- CompiledAction.cs
- HScrollProperties.cs
- RootProfilePropertySettingsCollection.cs
- UnsafeNativeMethods.cs
- DataGridItemEventArgs.cs
- ProcessRequestArgs.cs
- CommandEventArgs.cs
- SystemNetHelpers.cs
- COM2ICategorizePropertiesHandler.cs
- ValueOfAction.cs
- CodeBinaryOperatorExpression.cs
- OutputCacheProfileCollection.cs
- Comparer.cs
- TransformCollection.cs
- Constraint.cs
- RegistryExceptionHelper.cs
- DES.cs
- FontDriver.cs
- OneOfScalarConst.cs
- PersonalizationEntry.cs
- PropertyGrid.cs
- TextLineResult.cs
- InheritanceRules.cs
- PageClientProxyGenerator.cs
- Assign.cs
- InkSerializer.cs
- PeerNameRecord.cs
- DataGridDetailsPresenterAutomationPeer.cs
- XmlSchemaComplexType.cs
- WorkflowLayouts.cs
- Wildcard.cs
- BaseAutoFormat.cs
- CheckBoxStandardAdapter.cs
- SessionIDManager.cs
- WorkflowTransactionOptions.cs
- ScrollViewer.cs
- TextLineBreak.cs
- GridViewUpdatedEventArgs.cs
- ErrorTolerantObjectWriter.cs
- EncryptedPackage.cs
- ProviderConnectionPoint.cs
- ValidatedControlConverter.cs
- DefaultValueConverter.cs
- DataKey.cs
- MethodRental.cs
- JapaneseCalendar.cs
- IncrementalCompileAnalyzer.cs
- InheritanceRules.cs
- TreeViewImageKeyConverter.cs
- Component.cs
- DataGridTextBox.cs
- Logging.cs
- ReaderContextStackData.cs
- DesignerToolStripControlHost.cs
- CodeMethodReturnStatement.cs
- clipboard.cs
- TraceHwndHost.cs
- MetadataArtifactLoaderFile.cs
- ResourceAssociationTypeEnd.cs
- MarginCollapsingState.cs
- Endpoint.cs
- documentation.cs
- KeyFrames.cs
- SqlCacheDependency.cs
- NumericExpr.cs
- EntityDataSourceWrapperCollection.cs
- _Win32.cs
- SqlInternalConnectionSmi.cs
- PropertyGridView.cs
- FlowLayoutPanelDesigner.cs
- Rijndael.cs
- PrincipalPermission.cs
- FormCollection.cs
- PenThread.cs
- SemanticKeyElement.cs
- ProfileProvider.cs
- Convert.cs
- Publisher.cs
- DateTimeStorage.cs
- XmlNodeChangedEventManager.cs