Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputSubmit.cs / 1 / HtmlInputSubmit.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* HtmlInputSubmit.cs
*
* Copyright (c) 2000 Microsoft Corporation
*/
namespace System.Web.UI.HtmlControls {
using System;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Globalization;
using System.Security.Permissions;
///
///
/// The class defines the methods,
/// properties, and events for the HTML Input Button control. This class allows
/// programmatic access to the HTML <input type=
/// button>, <input type=
/// submit>,and <input
/// type=
/// reset> elements on
/// the server.
///
///
[
DefaultEvent("ServerClick"),
SupportsEventValidation,
]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class HtmlInputSubmit : HtmlInputButton, IPostBackEventHandler {
/*
* Creates an intrinsic Html INPUT type=submit control.
*/
///
/// Initializes a new instance of a class using
/// default values.
///
public HtmlInputSubmit() : base("submit") {
}
/*
* Creates an intrinsic Html INPUT type=button,submit,reset control.
*/
///
/// Initializes a new instance of a class using the
/// specified string.
///
public HtmlInputSubmit(string type) : base(type) {
}
internal override void RenderAttributesInternal(HtmlTextWriter writer) {
if (Page != null) {
Util.WriteOnClickAttribute(
writer, this, true /* submitsAutomatically */, false /* submitsProgramatically */,
(CausesValidation && Page.GetValidators(ValidationGroup).Count > 0),
ValidationGroup);
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CanonicalFormWriter.cs
- CqlQuery.cs
- EntityStoreSchemaFilterEntry.cs
- DetailsViewDeleteEventArgs.cs
- BitmapEffectrendercontext.cs
- Transform3DGroup.cs
- DrawingVisual.cs
- CompoundFileStreamReference.cs
- CodeStatement.cs
- TypographyProperties.cs
- WebPartCatalogAddVerb.cs
- IPPacketInformation.cs
- ServiceModelConfigurationSection.cs
- _AutoWebProxyScriptHelper.cs
- LinqDataSourceValidationException.cs
- Documentation.cs
- SymbolMethod.cs
- XmlElementCollection.cs
- ObjRef.cs
- DSACryptoServiceProvider.cs
- RuntimeConfigLKG.cs
- WinEventHandler.cs
- BitmapEffectDrawingContextState.cs
- _ConnectionGroup.cs
- ISO2022Encoding.cs
- XslException.cs
- AuthenticationService.cs
- __ConsoleStream.cs
- DependencyPropertyHelper.cs
- CellCreator.cs
- X509CertificateClaimSet.cs
- InstanceOwnerQueryResult.cs
- ReadOnlyCollectionBase.cs
- ExtensionFile.cs
- BadImageFormatException.cs
- VectorAnimation.cs
- InputMethodStateChangeEventArgs.cs
- PrintController.cs
- AdRotator.cs
- IgnorePropertiesAttribute.cs
- ListBox.cs
- ParamArrayAttribute.cs
- ApplicationSecurityInfo.cs
- RepeaterCommandEventArgs.cs
- TempEnvironment.cs
- TextTrailingCharacterEllipsis.cs
- CorePropertiesFilter.cs
- PlatformCulture.cs
- EditingMode.cs
- StringAttributeCollection.cs
- WorkflowMessageEventArgs.cs
- Matrix.cs
- securitycriticaldataClass.cs
- CompleteWizardStep.cs
- HttpRawResponse.cs
- xmlglyphRunInfo.cs
- BaseParaClient.cs
- StickyNote.cs
- TemplateBamlTreeBuilder.cs
- HierarchicalDataBoundControl.cs
- ServicePointManagerElement.cs
- ImageMetadata.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- PowerModeChangedEventArgs.cs
- HttpConfigurationContext.cs
- PeerCollaborationPermission.cs
- Panel.cs
- KnownBoxes.cs
- WebRequestModuleElement.cs
- DiscoveryMessageSequenceGenerator.cs
- DataViewManagerListItemTypeDescriptor.cs
- RemotingConfiguration.cs
- XmlNamedNodeMap.cs
- QueryOutputWriter.cs
- AssociationSetMetadata.cs
- ServiceOperationParameter.cs
- ListViewHitTestInfo.cs
- TableCell.cs
- TdsParserSessionPool.cs
- NTAccount.cs
- CheckBoxBaseAdapter.cs
- SurrogateSelector.cs
- EntityConnection.cs
- MobileListItem.cs
- DispatcherObject.cs
- ToolStripDesignerAvailabilityAttribute.cs
- brushes.cs
- PlatformNotSupportedException.cs
- CodeRegionDirective.cs
- PropertyCollection.cs
- ISAPIRuntime.cs
- ConfigXmlAttribute.cs
- StandardOleMarshalObject.cs
- Component.cs
- ResponseStream.cs
- WindowsFormsHost.cs
- RegexCaptureCollection.cs
- DropShadowBitmapEffect.cs
- SecureStringHasher.cs
- DesignerToolboxInfo.cs