Need guidance on getting data to Silverlight app via ASP.NET/WCF -



Need guidance on getting data to Silverlight app via ASP.NET/WCF -

first of give thanks help. have looked extensively , haven't found sure solution, here am...

basically developing asp.net (4.0) app. 1 webform represents study , divided 2 pieces: - div acts command panel contains textboxes, comboboxes, calendars, etc. provide parameters query, , button data. - div holds silverlight command host. silverlight app contains custom datagrid control.

so, imagine, user provides values parameters , clicks button info silverlight app's custom datagrid control. -i know you're asking yourself, why don't add together controls silverlight app , utilize ria services. without going much detail, want newer datagrid can slap of our existing asp.net pages.

i don't know best practice this. i've looked extensively , there several options have considered , got feet wet experimenting (with no success).

what think have wcf service sends info silverlight client on page. allow me clear not need request/reply message exchange pattern because silverlight client isn't going making requests. in "quest" accomplish have found examples/tutorials on duplex messaging think might work if can set asp page client service , silverlight app client same service. utilize clicks button , asp page's service reference calls service info , in turn sends info silverlight client. 1 concern have of tutorials have found send messages of clients, if 2 people visiting site @ same time? update both of thier sl apps? how target right client?

so question can provide advice, links, or other resources solution scenario?

first off, don't think need silverlight. there ton of great ui controls out there telerik radgrid drop existing app , , running in hr or two.

having said that, if want create work, need pub/sub works both in browser , in silverlight. take @ pubnub. 5,000 messages per day free, , works in virtually client (phone, silverlight, browser, etc) simple api.

basically, silverlight client subscribe "channel" notified when filter parameters change, , form publish messages channel, either through javascript or server side, telling subscribers (1 in case) of changed filter values. when silverlight client notified, create request info via wcf.

bit of hack though. encourage drop silverlight , utilize ajax grid. hope helps!

asp.net silverlight wcf design-patterns pollingduplexhttpbinding

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -