开发者

How to retrieve data from database in a Silverlight application by coding in a Service File

开发者 https://www.devze.com 2023-03-25 15:20 出处:网络
I have aSilverlight Application,with Code in C# in Visual Studio 2010开发者_运维百科. My requirement is i have a form with many different controls(Example textboxes,combo boxes).

I have a Silverlight Application,with Code in C# in Visual Studio 2010开发者_运维百科. My requirement is i have a form with many different controls(Example textboxes,combo boxes). I want to fill data in all these controls from Database,the values are comiing from different tables of the database(like CountryName in Combo from CountryMaster,CityName in Combo from CityMaster) etc.Now how can i construct methods in Service.svc file and access them in my XAML file to populate data in my controls. Combo's should have all the values in particular column of the Table(like All the Country Names should be Added to Combo Control) Also that after selecting All the combo's when a user clicks on a Select button the Selected Record should be displayed in DataGrid.

Thanks in Advance.


These tutorials #1 and #2 can help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号