When developing a Silverlight application one of the main challenge we would face is to change the url/endpoint address of the WCF service. I just wanted to share how I have solved this problem in one of my project. First, besides thesolution is able to change the url/endpoint dynamically, it’s also able (or actually required) [...]
Posts Tagged ‘Silverlight’
Dynamically changing url/endpoint for WCF service in Silverlight
Posted: June 5, 2010 in SilverlightTags: ASP.NET, Silverlight
Populating the ListBox We want to load all the customers into the listbox lstCustomers, for which we are using the Loaded event of the ListBox. Note that all service calls in Silverlight need to be asynchronous, so we will register a callback function where we will bind the incoming data to the ListBox. Notice how [...]
Creating the UI A Silverlight page/control consists of a layout XAML file and a code-behind xaml.cs file. Typically, similar to an ASP.NET page, the XAML file contains the layout definition (like a *.aspx file where we define our UI), while the xaml.cs file contains the logic and event handlers (like our aspx.cs file). Adding the [...]
Generating LINQ Classes To start generating LINQ data classes, we need to add a new LINQ Data Classes object in our ASP.NET application. Now, using the Server Explorer, create a new data connection to the your database (either using SQLExpress, or SQL Server if you have it), and then drag the tables Customer, Orders, and [...]
Hi friends, Its been a long time I am thinking of posting a blog on Silverlight applications. As I am new to this technology I cant’ assure that the methodologies and procedures I have used are hundred percent reliable and error free. But I believe that the code snippets and ideas I am sharing will [...]
