摘要: 阅读全文
posted @ 2015-01-19 19:24 astrue 阅读(262) 评论(0) 推荐(0)
摘要: 1.编写扩展方法类 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CSharpCharacteric { /// <summary> /// 扩展方法类 阅读全文
posted @ 2015-01-19 19:23 astrue 阅读(622) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:22 astrue 阅读(1259) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:21 astrue 阅读(212) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:19 astrue 阅读(1054) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:18 astrue 阅读(9371) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:15 astrue 阅读(146) 评论(0) 推荐(0)
摘要: 1、Guid.NewGuid().ToString("N") 结果为: 38bddf48f43c48588e0d78761eaa1ce62、Guid.NewGuid().ToString("D") 结果为: 57d99d89-caab-482a-a0e9-a0a803eed3ba3、Guid.New 阅读全文
posted @ 2015-01-19 19:14 astrue 阅读(209) 评论(0) 推荐(0)
摘要: ildasm.exe可以查看IL语言代码 阅读全文
posted @ 2015-01-19 19:13 astrue 阅读(113) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:05 astrue 阅读(1363) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:04 astrue 阅读(3854) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:03 astrue 阅读(562) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 19:02 astrue 阅读(310) 评论(0) 推荐(0)
摘要: 一、在asp.net项目中添加Web services1、新建一个asp.net项目(目前尚未验证是否可以在MVC项目中添加)2、在项目名上右击,选择添加→新建项→Web服务,输好名称后确定即可二、在asp.net项目中使用Web Services1.在项目中添加对web services的引用 方 阅读全文
posted @ 2015-01-19 19:01 astrue 阅读(210) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:59 astrue 阅读(439) 评论(0) 推荐(0)
摘要: 写几行JS代码 var num = '022'; alert(num+' '+parseInt(num)+' '+parseInt(num,10)); 不同的浏览器将会得到不同的结果在谷歌浏览器下的结果为 022 22 22在IE8下的结果为 022 18 22 原因是在IE8下,js解释器将022 阅读全文
posted @ 2015-01-19 18:58 astrue 阅读(277) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:56 astrue 阅读(2541) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:48 astrue 阅读(2045) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:47 astrue 阅读(198) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:46 astrue 阅读(559) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:42 astrue 阅读(6833) 评论(0) 推荐(0)
摘要: 首先,得有一个web service地址:http://www.baiduc.om/XXServices?wsdl然后在.net 项目中添加Web引用,并把地址给它输进去第三、编码: using System; using System.Data; using System.Configuratio 阅读全文
posted @ 2015-01-19 18:41 astrue 阅读(719) 评论(0) 推荐(0)
摘要: 之前用<a href="sdfasdfsd.txt">文件</a>,发现在提交数据再返回后,会提示网页过期。 解决办法:<a href="sfsdf.txt" target='_blank'>文件</a>来进行处理 阅读全文
posted @ 2015-01-19 18:37 astrue 阅读(228) 评论(0) 推荐(0)
摘要: iframe里面的子页,用parent.location.href = parent.location.reload();如果是window.open 打开就用opener.location.reload(); 阅读全文
posted @ 2015-01-19 18:35 astrue 阅读(577) 评论(0) 推荐(0)
摘要: 一、默认方式,保存在IIS进程中保存在IIS进程中是指把Session数据保存在IIS的运行的进程中,也就是inetinfo.exe这个进程中,这也是默认的Session的存方式,也是最常用的。 这种方式的优点是简单,性能最高。但是当重启IIS服务器时Session丢失。 二、保存在StateSer 阅读全文
posted @ 2015-01-19 18:34 astrue 阅读(1193) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 18:33 astrue 阅读(304) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-01-19 08:44 astrue 阅读(283) 评论(0) 推荐(0)