01 2018 档案
摘要:简单工厂模式只是解决对象的创建问题 完成计算器: 仅利用面向对象的封装特性,完成计算器。 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Calculate
阅读全文
摘要:url : ../../Service/MSD_Maintain.ashx/?action=Add4T2 url : Handler/MaintainHandler.ashx/?action=GenerateCombobox 1、在url中加上“/”,就会变成绝对路径,会去你的根目录开始查找的 2、
阅读全文
摘要:Create Table Article ( Id Int Identity(1,1) Not Null, Title Varchar(50) Not Null Constraint uq_ArticleTitle Unique, Keywords Varchar(50) Not Null, Abs
阅读全文
摘要:using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using S
阅读全文
摘要:1、向文件中写入XML XmlDocument xmlDoc = new XmlDocument();//在内存中构建一个Dom对象 XmlDeclaration xmld = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", "yes");//指定文档声明 x
阅读全文
摘要://cmd:"regsvr32 " + dllPath(注册dll的语句) //output:string.Empty(注册后的反馈信息 ) private static void runCmd(string cmd, out string output) { string CmdPath = @"C:\Windows\System32\cmd.exe"; cmd = cmd.Trim...
阅读全文