Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How web and windows applications update UI?

How web and windows applications update UI?

Scheduled Pinned Locked Moved ASP.NET
questiondesignhelpannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ipsoftware
    wrote on last edited by
    #1

    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

    W 1 Reply Last reply
    0
    • I ipsoftware

      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

      W Offline
      W Offline
      whit98c
      wrote on last edited by
      #2

      If this is an action you need, you might consider forcing a page reload through JavaScript function.

      I 1 Reply Last reply
      0
      • W whit98c

        If this is an action you need, you might consider forcing a page reload through JavaScript function.

        I Offline
        I Offline
        ipsoftware
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups