The HostConnect Event occurs only in a special case when a session to the host system needs to be established. The event is only raised when object pooling is enabled and the AutoConnect capability of the CE Web Form Renderer Control is not used. When using object pooling it is unpredictable when an object from the pool needs to be connected, hence when programmers of the hosting page decides to the host connection themselves, that is, not use the AutoConnect() method, the CE Web Form Renderer Control raises this event when an object needs to be connected.
When intercepted, the programmer of the hosting page is able to connect the object before processing continues.
Example hosting page HostConnect event handler. (C#)
private void OnHostConnect(object sender, CEWebForm.CEWebFormRendererEventArgs e) { // Connect the object. ConnectPooledHostSession((CEWebForm.CEWebFormRenderer)sender, e.WebSession, e.HostSession); }