“UpdatePanel” in Razor (mvc 3)

前端 未结 5 436
栀梦
栀梦 2020-12-14 12:06

Is there something like UpdatePanel (in ASPX) for Razor?

I want to refresh data (e.g. table, chart, ...) automaticly every 30 seconds. Similar to clicking the follow

5条回答
  •  独厮守ぢ
    2020-12-14 12:17

    Traditional controls don't works in ASP MVC

    You could do it using Jquery timers http://plugins.jquery.com/project/timers

    Other option could be to use the Delay function

    In your target is as simple as refresh the whole page, this SO link will be of your interest: Auto refresh in ASP.NET MVC

    Hope It Helps.

提交回复
热议问题