The JaxcentPage type exposes the following methods.





 XNA Framework Only

 .NET Compact Framework Only

  Member Description
CheckElementExists(SearchType, String, Int32)
Check if an element exists, without attempting to assign it to an object.
Delete cookie.
Delete an element referenced by an ID.
Single text/password fields in FORM elements cause a SUBMIT action.

This method can be called to disable this particular behavior by disabling the enter key for TEXT and PASSWORD.

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Execute JavaScript code, wait for results.

Same as EvalJavaScriptCode( code, false, null );

EvalJavaScriptCode(String, Boolean, array<Object>[]()[][])
Same as ExecJavaScriptCode, but waits for the result of the evaluation and returns it.
Execute JavaScript code, do not wait for results. Same as ExecJavaScriptCode( code, false, null );
ExecJavaScriptCode(String, Boolean, array<Object>[]()[][])
Call JavaScript, do not wait for results.

The arguments array can contain strings, Integers, Doubles, strings, bool, Integers, Jaxcent HTML Elements, or it can be null. If the argument array is not null, the "code" is just a JavaScript function name, and must not contain the parentheses character. In this case, the characters "( )" containing any arguments are appended to the "code". The array specifies the list of parameters. If the argument array is null, the "code" is evaluated as is, as an expression. To call a function with no args, use the form ExecJavaScriptCode( "myFunction()", null, false );

If the "argsAsArray" argument is true, the JavaScript function will be called with a single argument, which will be an array. Otherwise, the "args" array will be used as a list of arguments.

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Get a list of remote locales if specified in HTTP Accept-Language header. The most preferred locale is first, followed by other locales in order of preference. (If none specified, returns server's default locale.)
Retrieve all form data on page. The data must be identifiable with a name or an ID. In addition to INPUT tags, also retrieves data from SELECT and TEXTAREA tags.

The returned Map maps names or ids, to values.

Multile checkboxes can have the same name and multiple values. These are separated by commas. If the checkbox (or none of the checkboxes) is not selected, there will still be a value, and this value will be an empty string.

For lists (SELECT), the value contains of a selected index, followed by a colon character and the text selected. (Convenient utility functions JaxcentObject.getSelectedIndex and JaxcentObject.getSelectedValue are available to parse it.)

Get all data from session so far. If the "getFromCurrentPage" parameter is true, first retrieve current page's data into session, otherwise just returns the data collected so far.

This method is only available if auto-session-data is set to true. If getFromCurrentPage is true, this method cannot be called from the constructor (before page loading.)

Returns the URL used in the client for Jaxcent. The default is /JaxcentDotNet23.js This is different from JaxcentFramework.JaxcentJavaScriptURL - though normally both should be the same, this method reports the actual url used in this particular page instance.
Returns a string describing the connected page's version number as reported by the JavaScript on the page. E.g. "2.3.1". It should be the same as the Jaxcent version.
Get cookie value.
Get cookies from page as name->value pairs.
For AutoSessionData pages, returns whether saving form data in session upon page unloads, is enabled. This behavior is enabled by default, but can be turned off programmatically.
Serves as a hash function for a particular type.
(Inherited from Object.)
Return Jaxcent version.
Get the query parameter specified on the URL after a ? by a given parameter name.
Get the query parameters (part of query-string after ?) as a name/value pair dictionary.
The data returned for SELECT elements is of the form

selected-index: selected-option-value

This method can be used to retrieve the selected index from the data.

The data returned for SELECT elements is of the form

selected-index: selected-option-value

This method can be used to retrieve the selected value from the data.

Gets the Type of the current instance.
(Inherited from Object.)
Navigate back.
Navigate forward.
MakeContentURL(String, array<Byte>[]()[][])
Returns a URL that will return a given content-type and bytes. The information is placed in the session. The URL is based upon the Jaxcent URL, and can be used for applications such as generating a PDF file. Session must be available for the page. The information can be removed from the Jaxcent session by calling the method JaxcentSession.RemoveContentURLData.

This method can only be called if "use-session" was set to true, Note that even after "use-session" has been set, the session is not available in the constructor, it only becomes available after OnPageLoaded event has fired.

Creates a shallow copy of the current Object.
(Inherited from Object.)
Navigate to a given URL.
Reset form data from session. Session must be available. This can be used to implement a "Reset" button.
Access a URL on the same server, from the client-browser. No new window is opened on the client, and the results of the retrieval are discarded. This method is provided for book-keeping type tasks on the server, e.g. accumulating report statistics.
Used to hold updates without sending them out to the client. This can improve performance by sending out a number of updates all at once.

If batch-updates has been set to true, no further data will be sent to the client until batch-updates is reset to false! This should be done in a try-finally clause.

Important: Do not attempt to retrieve data from page while batch-updates is true!

Add cookie to page. cookiestring must be a correctly formatted cookie string.
SetCookie(String, String, Nullable<(Of <<'(DateTime>)>>), String, String, Boolean)
Add cookie to page. Expires, domain, path may be null.
Enable or disable saving of form data from current page into session, for AutoSessionData management. By default, this is enabled. To program the Reset/Submit type of behavior of earlier FORMs based web applications, disable saving form to session in the constructor, then in the Submit (or other button) handler, enable saving again before navigating away from the page.
Show JavaScript confirm dialog box to the user. Returns true for confirmation, false for cancellation.
ShowInputDialog(String, String)
Show JavaScript prompt dialog box to the user. If the defaultResult is not null, the input dialog is initialized with this text. If the user cancels, the returned value is null, otherwise it is the input from user.
Show JavaScript alert dialog box to the user.
Returns a String that represents the current Object.
(Inherited from Object.)

See Also