上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: #region 获取网页源码 (返回String) /// <summary> /// 获取网页源码 (返回String) /// </summary> /// <param name="url"></param> /// <returns></returns> public static stri 阅读全文
posted @ 2013-03-06 16:12 划破黑夜 阅读(2650) 评论(0) 推荐(0) 编辑
摘要: 简单的多线程: protected void Page_Load(object sender, EventArgs e) { ParameterizedThreadStart _ParameterizedThreadStart = new ParameterizedThreadStart(MyMet 阅读全文
posted @ 2013-02-27 10:00 划破黑夜 阅读(6904) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: 如果使用的提交按钮是button 不是submit 以及服务器控件 可以在ajax返回结果之后document.getElementById('form').submit(); 第二种: function BeginSubmit() { var txt = ""; jQuery.aja 阅读全文
posted @ 2013-02-23 10:31 划破黑夜 阅读(2291) 评论(0) 推荐(0) 编辑
摘要: Lua常用的4中遍历方式for key, value in pairs(tbtest) do XXX end 这样的遍历顺序并非是tbtest中table的排列顺序,而是根据tbtest中key的hash值排列的顺序来遍历的。for key, value in ipairs(tbtest) do XXX end 这样的循环必须要求tbtest中的key为顺序的,而且必须是从1开始,ipairs只会从1开始按连续的key顺序遍历到key不连续为止。for i=1, #(tbtest) do XXX end 这种遍历,只能遍历当tb... 阅读全文
posted @ 2013-01-02 14:01 划破黑夜 阅读(33249) 评论(1) 推荐(0) 编辑
摘要: 今天用delete触发器,发现无效打开以前的删除代码 一看truncate table PlanQty 以前还没见过 这个 truncate然后去网上搜下跟delte的区别,结果先存在这里,其他看什么时候有空去测试下1、TRUNCATE在各种表上无论是大的还是小的都非常快。如果有ROLLBACK命令DELETE将被撤销,而TRUNCATE则不会被撤销。2、TRUNCATE是一个DDL语言,向其他所有的DDL语言一样,他将被隐式提交,不能对TRUNCATE使用ROLLBACK命令。3、TRUNCATE将重新设置高水平线和所有的索引。在对整个表和索引进行完全浏览时,经过TRUNCATE操作后的表比 阅读全文
posted @ 2012-12-07 11:35 划破黑夜 阅读(242) 评论(0) 推荐(0) 编辑
摘要: --delete触发器IF(EXISTS(SELECT * FROM sysobjects WHERE name='T_PlanQtyDelete'))DROP TRIGGER T_PlanQtyDeletego Create trigger T_PlanQtyDelete On PlanQty for Delete As INSERT INTO dbo.PlanQtyHistory(qty, addDate, Productid) SELECT qty, addDate, Productid FROM deletedgo --u... 阅读全文
posted @ 2012-12-07 11:04 划破黑夜 阅读(5913) 评论(0) 推荐(0) 编辑
摘要: public static class ChineseToPinYin { private static readonly Dictionary<int, string> CodeCollections = new Dictionary<int, string> {&nbsp;{ -20319, "a" }, { -20317, "ai" }, { -20304, "an" }, { -20295, "ang" }, { -20292, "ao" }, { -20 阅读全文
posted @ 2012-11-01 16:20 划破黑夜 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: Ext中 renderer一般用于Grid中对列模型的渲染上 其详细信息记录在 Ext.grid.ColumnModel 中的setRenderer( Number col, Function fn ) 方法里一、col : Number The column index二、fn : FunctionThe function to use to process the cell's raw data to return HTML markup for the grid view. The render function is called with the following para 阅读全文
posted @ 2012-10-30 15:47 划破黑夜 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: //gridP gridpanel idExt.apply(Ext.getCmp("gridP").store.baseParams, { 参数1: 111, 参数2:222 }); grid = new Ext.grid.GridPanel({ frame: true, id: 'gridP', title: 'Order List', stripeRows: true, //斑马线 store: store, applyTo: 'view', //指定显示数据的div trackMouseOv... 阅读全文
posted @ 2012-10-29 14:16 划破黑夜 阅读(11880) 评论(0) 推荐(0) 编辑
摘要: // // C# 实现端口扫描 // using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threadi 阅读全文
posted @ 2012-10-26 11:49 划破黑夜 阅读(4401) 评论(1) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页