In Jaxcent, the contents of the form can be queried at any time, by calling
For processing forms when a button is clicked, a better method than calling
is to retrieve form data along with a button click. This can
be done by adding a handler to the
OnClickWithPageData event, (instead of
events. The button event handler can validate the input data as necessary, and
it can use
JaxcentPage.Navigate to send the browser
to a different page. Or it can use
Show methods to
hide a DIV containing the form, and to show a DIV containing the resultang message.
The hide/show method can also be used to collect all data from a single page, by
hiding and showing different forms.
right from Jaxcent by using the
for all HTML elements, or by adding the validator in the HTML on the page.
Form data can also be retrieved when the page is unloaded, by handling the
For data that belongs in a session (i.e. spans multiple pages), Jaxcent can automatically collect the data and put it in the session. See Automatic Handling of Data in Jaxcent via Sessions for details on this.
For SELECT tags, Jaxcent returns the data as
JaxcentPageclass has convenience methods
GetSelectedValueto retrieve the index and/or the value separately from such a string.