05-06-2023, 05:28 AM
(This post was last modified: 05-06-2023, 09:56 PM by Alexandre Machado.)
The OnRender event is a server side event, not a client (browser) side one. It will always happen when (i.e. immediately before) the HTML is being generated on the server side. Is it not the right place to use this kind of functionality that you want.
What you want here is a kind of chicken & egg problem. JavaScript will only run on browser side after rendering but you want to get the return values of JS functions before rendering which is not possible.
If your form needs some browser information other than the size of the window, you need to obtain this when your application starts and then adjust the rendering of the forms according to it.
What you want here is a kind of chicken & egg problem. JavaScript will only run on browser side after rendering but you want to get the return values of JS functions before rendering which is not possible.
If your form needs some browser information other than the size of the window, you need to obtain this when your application starts and then adjust the rendering of the forms according to it.

