Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

http - Ways to send a message from the server to the web browser at any time? -


i'm in situation want able notify visitor website of event occurring @ server.

think:

  • website visitor waiting export or report takes long time , running in background on server, need notify visitor when export done.

or

  • website visitor waiting chat message sales rep, need notify visitor when message sent them.

i can think of few ways this:

  • keep http connection server open forever
  • continually polling http server every second check if there new messages
  • write java applet holds connection open java server process

none of these seem particularly graceful solutions... there better way this?

http client-server protocol doesn't allow server initiated communications.

there number of workarounds scenario , have come of them.

  1. the common , low tech technique polling. can see on on-line travel agencies when search flight.
  2. keeping connection open until times out , opening waiting server send called comet , implemented in many ways, java applet.
  3. the recent standard way websockets, give full-duplex (2 way) channel wherein can want. brand new protocol manhandles http open connection. drawback it's rather new check browser compatibility. checkout demos.

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -