StanleyGu's Blog
.NET Consultant C# ASP.NET SQL Server Silverlight
Sign in
|
Join
Home
Contact
About
RSS
Atom
Comments RSS
Search
Tags
.NET
ADO.NET
Architect
ASP.NET 3.5
C#
Enterprise Library
IIS 7.0
Office
Silverlight 3.0
Solution
Tip
T-SQL
Visual Studio 2008
WCF
Windows Server 2008
Sponsors
advertise here
Navigation
Home
Blogs
Archives
April 2010 (3)
March 2010 (2)
February 2010 (5)
January 2010 (6)
December 2009 (8)
November 2009 (1)
December 2009 - Posts
4
Comments
Architect 1 : Building N-Tier Silverlight Application
by
StanleyGu
You have a Customer table with fields of LastName and FirstName, and want to use Silverlight DataGrid to display all the records. To implement this, You can use N-tier application architect. 1. The N-Tier Silverlight application consists of following...
Filed under:
Silverlight 3.0
,
ASP.NET 3.5
,
C#
,
.NET
,
Architect
6
Comments
Solution 4 : Export Silverlight DataGrid to Excel XML
by
StanleyGu
While ASP.NET GridView control supports data export to Excel, Silverlight DataGrid control does not. To implement the data export, you need to retrieve data from the DataGrid and write the data to an Excel XML file (Office Open XML File Format). 1. Use...
Filed under:
Silverlight 3.0
,
ASP.NET 3.5
,
C#
,
.NET
,
Office
,
Solution
2
Comments
Tip 4 : Microsoft Office Excel XML : Use the Correct DateTime Format to Avoid Error
by
StanleyGu
The correct format for DateTime data type in an Excel XML cell is yyyy-MM-ddTHH:mm:ss.fff . Using other formats will give you an error of The file cannot be opened because of errors when you open the Excel xml file. Sample code and value for the correct...
Filed under:
C#
,
.NET
,
Office
,
Tip
1
Comments
Tip 3 : Double Quotation Marks in String: Using C# Escape Sequence
by
StanleyGu
You have the following sentence that has double quotation marks: <? mso-application progid="Excel.Sheet" ?> To assign the above sentence to a string variable, you will need to use a C# escape sequence \" : string myString = "<?mso-application...
Filed under:
C#
,
.NET
,
Tip
1
Comments
Tip 2 : Silverlight-Enabled WCF Service Deployment: Modify ServiceReferences.ClientConfig
by
StanleyGu
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...
Filed under:
Silverlight 3.0
,
ASP.NET 3.5
,
IIS 7.0
,
WCF
,
Tip
1
Comments
Tip 1 : WCF Service Deployment: Leave IIS-Hosted Service Endpoint Address Blank
by
StanleyGu
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...
Filed under:
ASP.NET 3.5
,
IIS 7.0
,
WCF
,
Tip
7
Comments
Solution 3 : Passing Parameters from ASP.NET Page to Silverlight XAML
by
StanleyGu
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...
Filed under:
Silverlight 3.0
,
ASP.NET 3.5
,
C#
,
.NET
,
Solution
2
Comments
Solution 2 : Implementing GoToScreen Using Silverlight 3.0
by
StanleyGu
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...
Filed under:
Silverlight 3.0
,
ASP.NET 3.5
,
C#
,
.NET
,
Solution
More Posts