Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputSubmit.cs / 2 / 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);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Win32Exception.cs
- WpfKnownTypeInvoker.cs
- ActivationProxy.cs
- DrawingCollection.cs
- DBBindings.cs
- BypassElementCollection.cs
- DbXmlEnabledProviderManifest.cs
- NameTable.cs
- TransformerTypeCollection.cs
- TcpTransportSecurityElement.cs
- DbCommandDefinition.cs
- OleServicesContext.cs
- ToolStripItemClickedEventArgs.cs
- Button.cs
- MenuStrip.cs
- SafeRightsManagementPubHandle.cs
- InputLanguageManager.cs
- StrongNameKeyPair.cs
- AppDomain.cs
- TCPListener.cs
- WebEventCodes.cs
- SQLRoleProvider.cs
- WindowsFormsLinkLabel.cs
- SqlCacheDependencyDatabase.cs
- wpf-etw.cs
- SharedDp.cs
- JapaneseLunisolarCalendar.cs
- FontNamesConverter.cs
- Soap12ProtocolImporter.cs
- FormsAuthenticationConfiguration.cs
- FlowPosition.cs
- TabControlCancelEvent.cs
- QueueSurrogate.cs
- RegexReplacement.cs
- DataGridViewBand.cs
- Duration.cs
- IODescriptionAttribute.cs
- HtmlInputImage.cs
- ImageFormat.cs
- FilteredDataSetHelper.cs
- AutoResetEvent.cs
- Geometry3D.cs
- DataStreamFromComStream.cs
- RouteValueExpressionBuilder.cs
- TextElementEditingBehaviorAttribute.cs
- SamlSubjectStatement.cs
- NonParentingControl.cs
- TemplateColumn.cs
- DataContractJsonSerializer.cs
- CommandHelpers.cs
- DefaultParameterValueAttribute.cs
- OutputCacheSection.cs
- IisTraceListener.cs
- SoapFaultCodes.cs
- SeparatorAutomationPeer.cs
- SectionInformation.cs
- RemoteWebConfigurationHostServer.cs
- WhitespaceReader.cs
- _StreamFramer.cs
- WebPartAddingEventArgs.cs
- CornerRadiusConverter.cs
- DivideByZeroException.cs
- QueryStringHandler.cs
- ToolStripSplitButton.cs
- DeflateEmulationStream.cs
- DoubleAnimationBase.cs
- WindowsFormsSectionHandler.cs
- ControlIdConverter.cs
- InvalidOperationException.cs
- DataGridViewLinkCell.cs
- AlgoModule.cs
- Context.cs
- Page.cs
- PlainXmlDeserializer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XpsViewerException.cs
- ClientUrlResolverWrapper.cs
- GlyphCollection.cs
- AssemblyEvidenceFactory.cs
- TemplateComponentConnector.cs
- _Rfc2616CacheValidators.cs
- LogReserveAndAppendState.cs
- ErrorTableItemStyle.cs
- EndOfStreamException.cs
- ToolStripSeparator.cs
- GroupBoxAutomationPeer.cs
- AspNetSynchronizationContext.cs
- WebPartVerbCollection.cs
- EmptyQuery.cs
- MatrixKeyFrameCollection.cs
- DataGridViewIntLinkedList.cs
- SspiWrapper.cs
- QueryNode.cs
- BaseContextMenu.cs
- KernelTypeValidation.cs
- ListBoxAutomationPeer.cs
- SamlSecurityToken.cs
- ISAPIApplicationHost.cs
- SafeSecurityHelper.cs
- DataStorage.cs