The ObjectGateway type exposes the following members.

Properties

  NameDescription
SourceObject
Gets or sets the cso-compatible object from which the javascript value will be created.

Remarks

It is not necessary to re-assign the server-side object on every post-back. The generated string of javascript code is store in the control state on the first request to the page. The assignment of the object can be put in an
CopyC#
if(!IsPostBack){...}
block of code in the Page_Load method. If the server-side object changes and the changes need to be reflected on the client side, re-assign the object to this property. The control state will invalidated and the server-side object will be sent to the Object Gateway again.
TrapException
For debug purposes. Gets or sets a value defining if exceptions should be caught and the exception message assigned to the variable instead of letting the exception reach the surface.
VariableNameOnClientSide
Gets or sets the name of the variable to which the newly created javascript value will be assign to.

See Also