StanleyGu's Blog
.NET Consultant C# ASP.NET SQL Server Silverlight
-
Tip 2 : Silverlight-Enabled WCF Service Deployment: Modify ServiceReferences.ClientConfig
When deploying Silverlight application, you will need to unzip the xap file, modify ServiceReferences.ClientConfig, and zip back the xap file. While there are other options such as modifying the ServiceReferences.ClientConfig before the last build or using code to bypass the ServiceReferences.ClientConfig, the unzip/modify/zip approach is the best because it separates the concerns between development and deployment as well as coding and configuration.
-
Tip 1 : WCF Service Deployment: Leave IIS-Hosted Service Endpoint Address Blank
In client configuration, it is required to specify an absolute address of endpoint. However, in IIS-hosted service configuration, it is required to specify a relative address. IIS manages the ServiceHost instance, which provides base address for service.
-
Solution 3 : Passing Parameters from ASP.NET Page to Silverlight XAML
You have captured the login name and computer IP address in your ASP.NET page and you want to use the login name and IP address in your Silverlight XAML page for display, logging or access control. To implement this, you will need to pass the user name and IP address from the ASP.NET page to the Silverlight XAML.
-
Solution 2 : Implementing GoToScreen Using Silverlight 3.0
You have two xaml pages named Screen1 and Screen2. On Screen1, there is a button named GoToScreen2Button. On Screen2, there is a button named GoToScreen1Button. Clicking on the GoToScreen2Button brings you to Screen2, and clicking on the GoToScreen1Button brings you to Screen1.
-
Solution 1 : Determining which datagrid has focus