Assembly: Jaxcent (in Jaxcent.dll) Version: 18.104.22.168 (22.214.171.124)
|C#||Visual Basic||Visual C++|
public class JaxcentPage
Public Class JaxcentPage
public ref class JaxcentPage
XNA Framework Only
.NET Compact Framework Only
Constructor with a "use-session" initializer.
Constructor with "use-session" and "auto-session" initializers.
Similar to the constructor with single "aspDotNetpage" parameter, but also sets "UseSession". If UseSession is true, a JaxcentSession will be added to the page.
|JaxcentPage(Page, Boolean, Boolean)|
Similar to the constructor with single "aspDotNetpage" parameter, but also sets "UseSession" and "AutoSession". If autoSession is true, all form data from the page will automatically be retrieved into session when the page is unloaded (e.g. if user nagivates away from page.)
|CheckElementExists(SearchType, String, Int32)|
Check if an element exists, without attempting to assign it to an object.
Get the remote locale if specified in HTTP Accept-Language header. (If not specified, returns server's default locale.)
Get the client IP address.
Get the path of the URL that is being processed.
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.
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.)
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
This method can be used to retrieve the selected index from the data.
The data returned for SELECT elements is of the form
This method can be used to retrieve the selected value from the data.
Gets the Type of the current instance.(Inherited from Object.)
Jaxcent Connection ID can be used to set up the Jaxcent connection manually
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.
Event to receive form data during page unloading. The data has the same format as GetAllFormData. But at this time, no further interactions with the page are possible. The data can be saved in the session, or otherwise processed. Field verifications cannot be done here. For field verifications, add handler on buttons or other fields, and retrieve the data either with the event or by calling GetAllFormData().
Jaxcent page-loaded event
Jaxcent page-unloaded event. Exceptions during handling this event are displayed via JaxcentFramework.JaxcentExceptionHandler
The full query-string for the current page (the part after ?). To retrieve values for individual parameters, use GetQueryParameters() or GetQueryParameter(name)
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.
The session for the current page. It will be null unless "use-session" was set for the page. Also note that the session is not initialized (and will be null) until the page-loaded event has fired.
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.
Get/Set status text on client HTML page