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
- CopyOfAction.cs
- RepeaterItemEventArgs.cs
- DrawingDrawingContext.cs
- RemotingSurrogateSelector.cs
- WindowsAuthenticationModule.cs
- EntitySqlQueryCacheEntry.cs
- ConsoleEntryPoint.cs
- ButtonBase.cs
- TextPenaltyModule.cs
- StreamingContext.cs
- SQLGuid.cs
- RSAOAEPKeyExchangeFormatter.cs
- CompilationUtil.cs
- ByteStorage.cs
- Point3DConverter.cs
- Vector3DAnimationBase.cs
- ContentDisposition.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DataSourceControlBuilder.cs
- ListenerElementsCollection.cs
- WizardForm.cs
- DefaultTraceListener.cs
- SerializationException.cs
- CompilationRelaxations.cs
- ListViewInsertionMark.cs
- BitmapScalingModeValidation.cs
- RightsManagementEncryptedStream.cs
- FormViewUpdateEventArgs.cs
- PeerService.cs
- Socket.cs
- WebConfigurationHost.cs
- CallContext.cs
- Memoizer.cs
- String.cs
- ProfessionalColors.cs
- WindowsListViewGroupHelper.cs
- BindValidationContext.cs
- ServiceMoniker.cs
- HttpStreamXmlDictionaryReader.cs
- DataSourceView.cs
- FieldBuilder.cs
- COM2ExtendedTypeConverter.cs
- FutureFactory.cs
- MsmqMessageProperty.cs
- OracleColumn.cs
- sortedlist.cs
- DataControlHelper.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DesignerLoader.cs
- CompositeActivityTypeDescriptorProvider.cs
- HtmlControlPersistable.cs
- BaseServiceProvider.cs
- CompilerError.cs
- BufferedStream.cs
- InlineUIContainer.cs
- FindSimilarActivitiesVerb.cs
- XmlAttributeCollection.cs
- ControlEvent.cs
- DesignerView.xaml.cs
- Int32CAMarshaler.cs
- TemplateEditingFrame.cs
- InternalConfirm.cs
- DesignerListAdapter.cs
- ArcSegment.cs
- ConnectionString.cs
- CompilationSection.cs
- Image.cs
- UpdateRecord.cs
- ProxyElement.cs
- ExponentialEase.cs
- MultiAsyncResult.cs
- CustomAssemblyResolver.cs
- WpfGeneratedKnownProperties.cs
- StateBag.cs
- FontDriver.cs
- OperatorExpressions.cs
- ImportCatalogPart.cs
- ColorInterpolationModeValidation.cs
- XmlJsonReader.cs
- ProfileInfo.cs
- DataBoundControlDesigner.cs
- PerfCounterSection.cs
- XmlSerializationGeneratedCode.cs
- NegotiateStream.cs
- CommandLibraryHelper.cs
- BooleanFunctions.cs
- MemberInitExpression.cs
- XMLUtil.cs
- ForeignKeyConstraint.cs
- SystemPens.cs
- DataTableNewRowEvent.cs
- ParameterCollection.cs
- FilterQuery.cs
- BooleanStorage.cs
- MenuAutomationPeer.cs
- WsatTransactionHeader.cs
- InternalsVisibleToAttribute.cs
- MarshalByValueComponent.cs
- ToolStripStatusLabel.cs
- ToolStripContentPanel.cs