Contents tagged with C#
-
Solution 4 : Export Silverlight DataGrid to Excel XML
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).
-
Tip 4 : Microsoft Office Excel XML : Use the Correct DateTime Format to Avoid Error
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.
-
Tip 3 : Double Quotation Marks in String: Using C# Escape Sequence
You have the following sentence that has double quotation marks:
-
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