· XSLT / XML / C# (转)这个例程展示了如何将xslt 应用于从数据库中读出的XML格式数据上. 例程完全使用C#语言编写: using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
using System.XML;
using System.XML.Xsl;public class XsltTransform
{
p...
· Windows Services(以前被称为NT services)是在后台的Windows server 或workstation上运行的程序。在进行一些适当的设置以后,它们便可以在电脑重启之后自动开启,而无需进行人工干预。这同样适用于那些需要定期执行的长时间程序。 这里我将介绍一种Timer Windows Service,它使你只需简单地将一个a...
· Use StringBuilder for Complex String Manipulation
When a string is modified, the run time will create a new string and return it, leaving the original to be garbage collected. Most of the time this is a fast and simple way to do it, but when a string is being modified repeate...
· Use Session State Only If You Need To
One extremely powerful feature of ASP.NET is its ability to store session state for users, such as a shopping cart on an e-commerce site or a browser history. Since this is on by default, you pay the cost in memory even if you don't use i...
· Use Binary Compare for Text
When comparing text, use binary compare instead of text compare. At run time, the overhead is much lighter for binary. Minimize the Use of Format()
When you can, use toString() instead of format(). In most cases, it will provide you with the functi...
· What You Can Do
At every phase of development, there are several things you can do. With MC++, the design phase is perhaps the most important area, as it will determine how much work you end up doing and how much performance you get in return. When you sit down to write or po...