如何在Silverlight 4.0应用程序中使用Web服务 [英] How to use web services in silverlight 4.0 Application
本文介绍了如何在Silverlight 4.0应用程序中使用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个datagrid控件,我希望对datagrid控件所做的任何更改也应反映到数据库中. href ="http://www.google.co.in/search?q=datagrid+silverlight+database&rls=com.microsoft:en-US&ie=UTF-8&oe=UTF-8&startIndex=& ; startPage = 1& redir_esc =& ei = VbT7S5-pPJClceTcgeIB> google搜索 [使用ADO.NET在Silverlight DataGrid中插入,更新和删除 [视频,应该可以帮助您入门.
I have a datagrid control and i want whatever changes i made in datagrid control should be reflected to the database as well...
解决方案
A simple google search[^] gave this as first link:
Insert, Update and Delete in Silverlight DataGrid using ADO.NET[^]
There are a lot more if you search. It''s a standard action that needs to be present in any beginner book of Silverlight.
You have to write the web service, add a reference to it in your Silverlight application, and then use it like you would from any other .Net application. You do have to create aClientAccessPolicy.xml
file in the web service so that Silverlight can use to it.
Once again, Google is your friend.
Here is a video that should help you start up.
这篇关于如何在Silverlight 4.0应用程序中使用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文