Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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

© 2015 Microsoft