Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlInputSubmit.cs / 1305376 / 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,
]
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.
//
//-----------------------------------------------------------------------------
/*
* 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,
]
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlParameterCollection.cs
- OneOfTypeConst.cs
- CustomExpression.cs
- TouchesOverProperty.cs
- InstanceLockTracking.cs
- HandledMouseEvent.cs
- ResourceKey.cs
- DataMisalignedException.cs
- ItemTypeToolStripMenuItem.cs
- OdbcException.cs
- ProfessionalColorTable.cs
- DbConnectionClosed.cs
- OutputScope.cs
- Matrix.cs
- XmlSerializerNamespaces.cs
- Rectangle.cs
- StylusEditingBehavior.cs
- BitmapEffectrendercontext.cs
- InheritanceContextChangedEventManager.cs
- EdmScalarPropertyAttribute.cs
- PageParser.cs
- HMAC.cs
- DataGridPagingPage.cs
- Soap12ProtocolReflector.cs
- CssClassPropertyAttribute.cs
- IdentityReference.cs
- FileSystemInfo.cs
- PriorityChain.cs
- AttributeQuery.cs
- DataExpression.cs
- ScriptReference.cs
- ListViewGroup.cs
- OciEnlistContext.cs
- SchemaManager.cs
- PropertyConverter.cs
- RootBrowserWindowAutomationPeer.cs
- ByteStream.cs
- SqlPersonalizationProvider.cs
- NTAccount.cs
- DataGridViewColumnConverter.cs
- DataGridRowAutomationPeer.cs
- EntityDataSourceWrapperCollection.cs
- XsltArgumentList.cs
- CursorConverter.cs
- DataKeyPropertyAttribute.cs
- PnrpPeerResolver.cs
- ListControlStringCollectionEditor.cs
- cookie.cs
- PropertyCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- ScrollBarAutomationPeer.cs
- securitycriticaldata.cs
- StoreAnnotationsMap.cs
- ExpressionNode.cs
- FormsAuthenticationUser.cs
- MsmqBindingElementBase.cs
- Helpers.cs
- MsmqException.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ApplicationInfo.cs
- AttachedPropertyDescriptor.cs
- DebugTraceHelper.cs
- SubclassTypeValidator.cs
- BoundField.cs
- XmlTextReader.cs
- WorkflowRuntimeBehavior.cs
- ControlIdConverter.cs
- SequenceDesigner.cs
- DataGridViewTextBoxEditingControl.cs
- PopupRootAutomationPeer.cs
- StorageRoot.cs
- MgmtResManager.cs
- ClientOperationFormatterProvider.cs
- mediaclock.cs
- RegisteredHiddenField.cs
- SqlCrossApplyToCrossJoin.cs
- SqlTypesSchemaImporter.cs
- NetCodeGroup.cs
- InstanceDataCollection.cs
- ApplicationSecurityManager.cs
- QilFactory.cs
- FontDifferentiator.cs
- Label.cs
- followingsibling.cs
- LineUtil.cs
- SHA384CryptoServiceProvider.cs
- SymbolType.cs
- BamlWriter.cs
- DeviceFilterDictionary.cs
- DrawToolTipEventArgs.cs
- TextBox.cs
- DockPattern.cs
- HMAC.cs
- StructuralType.cs
- PrincipalPermission.cs
- TemplateInstanceAttribute.cs
- ParsedRoute.cs
- FontConverter.cs
- SqlClientWrapperSmiStream.cs
- CodeObjectCreateExpression.cs