2

For a school project we have to create a simple silverlight website where people can register themselves in a database and where the admins of the website can edit the website.

My biggest problem is that I have no clue on how to connect to a database, how to fetch data from it and how to put data in it.

I have found the following tutorial, but it is confusing to adjust it to my own database, because they tell you to "add" excisting code pages which are not compatible with my own Database.

The rest of the tutorials I can find on the internet are for Silverlight 2 or less but we have to use Silverlight 4.

Thank you, Schoof

1 Answer 1

1
  • Create a Silverlight enabled web service
  • Write the same ADO .NET/LINQ database access code in the web service
  • Reference the web service in silverlight
  • Use the webservice objects for your CRUD operations
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for answering me, but I have no idea how to do any of those steps. We have barely gotten an introduction to Silverlight in class and I don't really know a lot about it. My apologies.
Thank you Brian, but I posted a link to a tutorial at silverlight.net where they try to explain, but do this by throwing pages of code at you and not explaining what any of the code does.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.