上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 引自:http://www.cnblogs.com/zjmzone/archive/2011/09/14/2176496.htmlnamespace lwfxxxpt{ /// <summary> /// WebService 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxIte 阅读全文
posted @ 2012-08-27 11:59 doubledu 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 在项目中经常用到DataTable,如果DataTable使用得当,不仅能使程序简洁实用,而且能够提高性能,达到事半功倍的效果,现对DataTable的使用技巧进行一下总结。 一、DataTable简介 (1)构造函数DataTable() 不带参数初始化DataTable 类的新实例。DataTable(string tableName) 用指定的表名初始化DataTable 类的新实例。DataTable(string tableName, string tableNamespace) 用指定的表名和命名空间初始化DataTable 类的新实例。(2) 常用属性CaseSensitive 阅读全文
posted @ 2012-07-12 10:18 doubledu 阅读(241) 评论(0) 推荐(0) 编辑
摘要: public int SavePhoto(string photourl) { FileStream fs = new FileStream(photourl, FileMode.Open, FileAccess.Read);//创建FileStream对象,用于向BinaryReader写入字节数据流 BinaryReader br = new BinaryReader(fs);//创建BinaryReader对象,用于写入下面的byte数组 byte[] photo = br.ReadBytes((int)fs.Length); //新建byte数组,写入br中的数据 br.Clo... 阅读全文
posted @ 2012-06-28 16:06 doubledu 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1.document.write( " "); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document- >html- >(head,body) 4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,document) 5.得到表单中元素的名称和值:document.getElementById( "表单中元素的ID號 ").name(或value) 6.一个小写转大写的JS: document.getElementById( "o 阅读全文
posted @ 2012-06-19 00:32 doubledu 阅读(127) 评论(0) 推荐(1) 编辑
摘要: 连接SQL数据库的方法:(一)、在Web.Config中创建连接字符串:1、<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\grade.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />2、<add name="sample 阅读全文
posted @ 2012-06-18 19:22 doubledu 阅读(766) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页