Contents tagged with .NET
-
Solution 6 : Kill a Non-Clustered Process during Two-Node Cluster Failover
Using Visual Studio 2008 and C#, I developed a windows service A and deployed it to two nodes of a windows server 2008 failover cluster. The service A is part of the failover cluster service, which means, when failover occurs at node1, the cluster service will failover the windows service A from node 1 to node 2.
-
Tip 16 : Open Multiple Documents within Single Application Instance Using C#
1. Using Microsoft Word 2007 as an example, you can open test1.docx and test2.docx at same time. The two documents are opened within single instance of the word application. World application supports command line argument of passing multiple documents.
-
Tip 14 : Solve SmtpClient issues of delayed email and high CPU usage
1. It is quite straightforward using SmtpClient class to send out an email
-
Tip 13 : Kill a process using C#, from local to remote
1. My first choice is always to try System.Diagnostics to kill a process
-
Architect 1 : Building N-Tier Silverlight Application
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.
-
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.