How web and windows applications update UI?
-
The question I want to ask is whether the web UI is updated ONLY when some event is triggered on the web page(e.g. the button in the web UI is clicked). I am asking this question is because say initially a remote service "Running" status is shown in the client's UI by being bound to DataGrid. suppose the client issues the async command StopService(), the service is stopped successfully and we obtain the service latest status (which is "Stopped") by calling EndInvoke(..). Even if we rebind the service status data to the DataGrid for display, the Client UI won't be able to updated automatically in this way, right? unless the client takes some action(e.g. click some other buttons in the UI). I think in terms of UI updating, Web application and Windows application are quite different, please help correct me if I am wrong. Billions of thanks
-
The question I want to ask is whether the web UI is updated ONLY when some event is triggered on the web page(e.g. the button in the web UI is clicked). I am asking this question is because say initially a remote service "Running" status is shown in the client's UI by being bound to DataGrid. suppose the client issues the async command StopService(), the service is stopped successfully and we obtain the service latest status (which is "Stopped") by calling EndInvoke(..). Even if we rebind the service status data to the DataGrid for display, the Client UI won't be able to updated automatically in this way, right? unless the client takes some action(e.g. click some other buttons in the UI). I think in terms of UI updating, Web application and Windows application are quite different, please help correct me if I am wrong. Billions of thanks
-
If this is an action you need, you might consider forcing a page reload through JavaScript function.
Thank you!, but how will the script be like? should I define a timer within the script so that it may call the backend function periodically?