开心

上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: /// <summary> /// The SqlHelper class is intended to encapsulate high performance, scalable best practices for /// common uses of SqlClient /// </summ 阅读全文
posted @ 2016-01-29 15:45 大喜 阅读(166) 评论(0) 推荐(0)
摘要: C#的默认访问权限:类,接口:internal ,还可以是public 但不能是其他 类中:属性,方法:private 接口中:方法:public ,不能显示 定义。 阅读全文
posted @ 2016-01-29 11:07 大喜 阅读(514) 评论(0) 推荐(0)
摘要: 字符串操作:string str ="qwewq i lobe me you?you me"; str.Split(new char[] { ' ', '.', '?' },StringSplitOptions.RemoveEmptyEntries).Length;说明:参数1:以' ', '.', 阅读全文
posted @ 2016-01-29 11:06 大喜 阅读(265) 评论(0) 推荐(0)
摘要: 弱应用:在应用程序代码内实例化一个类或结构时,只要有代码引用它,就会形成强引用。例如,如果 有一个类 MyClass(),并创建了一个变量 myClassVariable 来引用该类的对象,那么只要 myClassVariable 在作用域内,就存在对 MyClass 对象的强引用,如下所示: My 阅读全文
posted @ 2016-01-29 11:05 大喜 阅读(233) 评论(0) 推荐(0)
摘要: /// <summary> /// 把数据表格转化为json格式。 /// </summary> /// <param name="dt">数据表格</param> /// <returns></returns> string jsonString, public static string Dat 阅读全文
posted @ 2016-01-28 15:45 大喜 阅读(1281) 评论(0) 推荐(0)
摘要: public class Handler2 : IHttpHandler, IRequiresSessionState { public void ProcessRequest(HttpContext context) { //取得处事类型 string action = DTRequest.Get 阅读全文
posted @ 2016-01-28 15:21 大喜 阅读(259) 评论(0) 推荐(0)
摘要: <%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Drawing; using System.IO; using System.Drawing.Imaging; u 阅读全文
posted @ 2016-01-28 15:09 大喜 阅读(153) 评论(0) 推荐(0)
摘要: javascript 延迟 (1) <script type="text/javascript"> function timedMsg(){ var t=setTimeout("",1000) } </script> setTimeout(code,millisec); code (必需):要调用的 阅读全文
posted @ 2016-01-28 14:46 大喜 阅读(343) 评论(0) 推荐(0)
摘要: ashx获取另一个页面的值: 注:因为这是web请求,所以要http://...web路径 using System; using System.Web; using System.Web.SessionState; using System.IO; using System.Net; using 阅读全文
posted @ 2016-01-28 13:56 大喜 阅读(763) 评论(0) 推荐(0)
摘要: {Title} {Content} $.get("Handler.ashx?n=" + Math.random(), { action: "getNews" }, function(data) { var list = $.parseJSON(data); var ul = $("#ulList"... 阅读全文
posted @ 2016-01-26 15:21 大喜 阅读(299) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
坦然 会增进信任 - 信任 感情才会升华