asp.net refresh part of page whit jquery when application state change
Posted
by
Jeson Park
on Stack Overflow
See other posts from Stack Overflow
or by Jeson Park
Published on 2012-06-25T15:12:21Z
Indexed on
2012/06/25
15:15 UTC
Read the original article
Hit count: 192
i use Application property to count number of online users
Application["OnlineUsers"] = (int)Application["OnlineUsers"] + 1;
and then bind Application property value to HTML tag
<div id="OnlineUser" >
<span>Number of Online Users is <%=Application["OnlineUsers"].ToString() %></span>
</div>
when for example "user1" visit page,DIV tag show "Number of Online Users is 1"
and "user2" visit page,DIV tag show "Number of Online Users is 2"
but user1 still "Number of Online Users is 1"
how do i refresh user1 page when user2 change application peroperty?
© Stack Overflow or respective owner