| 
| 
查看: 826|回复: 7
 | 
Real Time data
[复制链接] |  
 |  | 
 
| 现在我要做一个webbase using asp.net 来呈现real time data which is get from MSSQL. 我想问怎样当那个table的data有改变,webpage will auto refresh instead of use timer to control? | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 24-2-2014 09:47 AM
|
显示全部楼层 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 
 楼主|
发表于 24-2-2014 10:51 AM
|
显示全部楼层 
| keatkeat87 发表于 24-2-2014 09:47 AM  u mean websocket ?
yes... i have find out the websocket can support on this...but i not sure how is going on...do you have any idea? any limitation?
 
 
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 24-2-2014 02:35 PM
|
显示全部楼层 
| 之前上课的时候有略看过一下说明书,不过没真真开发过 . 帮不上什么忙 。
 我读的是asp.net ,需要  iis8 才能支持 , 网上可以找到挺多web socket plugin 的,java node.js 都有。你去看看吧。
 
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 24-2-2014 10:33 PM
|
显示全部楼层 
| 奋斗1314 发表于 24-2-2014 10:51 AM  yes... i have find out the websocket can support on this...but i not sure how is going on...do you ...
google 一下 SignalR吧.
 也可以做online chat, 比如customer service.
 如果同一時间用戶不多,或只是學校作業,就不理那麼多.不然的話可以讀一下Server Broadcast.
 
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 24-2-2014 10:35 PM
|
显示全部楼层 
| 1) 如果你能 control source data, use broadcast: websocket| SignalR 2) 如果你不能 control source data, maybe can try : trigger|CLR?
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 
 楼主|
发表于 25-2-2014 08:22 AM
|
显示全部楼层 
| 谢谢大家的回复。。。actually this program is need to use in my company. SignalR i have google before, but havent start to understanding in deep. Besides that, what is use broadcast? yup, i can control the source data, currently i use trigger in the table and fetch into another table in another server, so that the web base will directly capture the data in this new server. 
 
 | 
 |  |  |  |
 
|  |  |  
|  |  | 
 |  | 
 
 发表于 25-2-2014 08:59 PM
|
显示全部楼层 |  |  |  |
 
|  |  |  
|  |  |  |  | 
            本周最热论坛帖子 |