This documentation is archived and is not being maintained.

IsFormSubmitControl Method (Common)

.NET Framework 1.1

Returns true if the control submits the form. The default is false.

protected virtual bool IsFormSubmitControl()


Mobile controls, such as the Command, can override this method to determine whether this is a control used for form submission as shown in the following code.

Other controls can be extended by providing logic to programmatically determine whether or not they must be submit controls, for example, by checking for specific properties.

Note   A control is considered to be a form-submit control only if it implements IPostBackEventHandler method to capture the postback event. Otherwise, it is not registered for the default event handler, even if the method returns true.

See Also

Applies to: Command Class | MobileControl Class