FormMethod Property  
 

Gets and sets the method used to submit the form data.

Syntax

object.FormMethod [= value ]

Remarks

The FormMethod property is used to specify how form data will be submitted to the server using the SubmitForm method. It may be one of the following values:

Value Constant Description
1 httpMethodGet The form data should be submitted using the GET command. This method should be used when the amount of form data is relatively small. If the total amount of form data exceeds 2048 bytes, it is recommended that the POST method be used instead.
2 httpMethodPost The form data should be submitted using the POST command. This is the preferred method of submitting larger amounts of form data. If the total amount of form data exceeds 2048 bytes, it is recommended that the POST method be used.

Data Type

Integer (Int32)

See Also

FormAction Property, FormType Property, CreateForm Method, SubmitForm Method