- 博客(19)
- 资源 (8)
- 收藏
- 关注
转载 c#如何将txt文本内容进行清空(C#清空txt文本内容)
System.IO.File.WriteAllText(@"c:\test.txt", string.Empty);
2013-05-25 23:45:01 18318 5
转载 C#复制、粘贴文本信息到剪贴板
http://www.cnblogs.com/michaelxu/archive/2008/11/04/1326184.html复制:private void button1_Click(object sender, System.EventArgs e) { // Takes the selected text from a text box and puts it on th
2013-05-25 01:46:58 597
转载 C#遍历ComboBox
http://www.cnblogs.com/JuneZhang/archive/2011/12/13/2286872.html C#遍历ComboBox的内容:一:for (int i = 0; i < comboBox1.Items.Count; i++){ MessageBox.Show(comboBox1.GetItemText(comboBox1.Ite
2013-05-24 12:12:02 971
转载 C#读写文件总结
http://www.cnblogs.com/qiantuwuliang/archive/2009/03/12/1409417.html1、使用FileStream读写文件 文件头: using System;using System.Collections.Generic;using System.Text;using System.IO; 读文件核心代码
2013-05-24 12:11:03 461
转载 JDBC批量执行sql .
声明: 非原创,原帖地址http://blog.sina.com.cn/s/blog_4d8a2c970100g59y.html JDBC的批量处理语句包括下面两个方法:addBatch(String):添加需要批量处理的SQL语句或是参数;executeBatch();执行批量处理语句;通常我们会遇到两种批量执行SQL语句的情况:1 多条SQL语句的批量处理;
2013-05-23 16:00:01 592
原创 Hibernate批处理操作优化 (批量插入、更新与删除)
我开发的网站加了个新功能:需要在线上处理表数据的批量合并和更新,昨天下午发布上线,执行该功能后,服务器的load突然增高,变化曲线异常,SA教育了我一番,让我尽快处理,将CPU负载降低。工作所需,我经常要写些程序批量处理数据,每次执行几十万数据处理的时候,我机子的CPU都会飙高,而且数据处理速度会越来越慢。比如第一个1W条要5分钟,第二个1W条就要10分钟,要干其他事情的时候机子也卡的不行
2013-05-23 15:25:36 1426
转载 VS2010 引用DevComponents.DotNetBar .
步骤:1)下载DevComponents.DotNetBar2.dll(VS2010需要v10.0以上版本)2)为工程添加引用,浏览找到DevComponents.DotNetBar2.dll3)打开工具箱,右键【选择项】弹出 单击浏览按钮,选择DevComponents.DotNetBar2.dll4)代码中添加using DevComponen
2013-05-23 11:06:36 2515
转载 DotNetBar教程(二)
在DotNetBar教程(一)里,用一个实例介绍了DotNetBar在.NET环境下的使用(原文见http://www.cnblogs.com/hans_gis/archive/2010/07/13/1776817.html),在本篇里,介绍一下ExpandablePanel控件的用法。从其名称Expandable中可以意识到该控件是个具有伸缩性的控件,如此可以利用这个特点高效的利用有限的界面。
2013-05-23 10:43:00 2919
转载 DotNetBar教程(一)
DotNetBar是一组用于.NET Framework环境下的一组组件集,利用该组件集能够打造绚丽并且实用的应用程序界面,给开发人员提供极大的便利。关于DotNetBar,详情请参考其官方网站:http://www.devcomponents.com 该组件集目前最新版本是8.8(不知最近有没有升级版本),可以从该网站上下载到试用期为一个月的试用版本。 正常安装了DotNetBar组件集(
2013-05-23 10:42:19 1382
转载 C#重命文件
页面包括3个控件,1文本框输入路径2多选按钮重命名条件3提交按钮protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string path = str
2013-05-23 01:47:15 579
转载 dede织梦_采集规则技巧-过滤-替换
接口@me=str_replace('被替换字','替换字',@me);官方自带{dede:trim replace=''}]*)>(.*){/dede:trim}{dede:trim replace=''}]*)>(.*){/dede:trim}{dede:trim replace=''}{/dede:trim}{dede:trim replace=''}]*)>(.
2013-05-21 01:15:02 1582
转载 struts2核心工作流程与原理
1. Struts2架构图 这是Struts2官方站点提供的Struts 2 的整体结构。 2. Struts2部分类介绍 这部分从Struts2参考文档中翻译就可以了。 ActionMapper ActionMapper其实是HttpServletRequest和Action调用请求的一个映射,它屏蔽了Action对于Request等 java
2013-05-14 14:57:59 543
转载 一篇很全面的freemarker教程
http://relive123-yahoo-com-cn.iteye.com/blog/818013以下内容全部是网上收集:企业网站源码下载 FreeMarker的模板文件并不比HTML页面复杂多少,FreeMarker模板文件主要由如下4个部分组成: 1,文本:直接输出的部分 2,注释:格式部分,不会输出 3,插值:即${...}或#{...}格式的部分,将使用数据模型
2013-05-14 14:41:50 416
转载 JAVA自定义标签教程及实例代码
Test.jsp 企业网站源码下载 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> My JSP 'Test.jsp' starting page This is my JSP page. Date : new java.util.Date().toString()
2013-05-14 14:31:01 523
原创 解决织梦DedeCMS恶意注册的方法
如果你的站正在备受垃圾会员注册,和群发广告文章的煎熬,那么,恭喜你,只用一招,几乎就可以耳根清静啦! 具体方法是:在member 目录下面的index.php , reg_new.php文件里面加上来路的判断,代码为: $flag=0; if( stristr ($_SERVER['HTTP_REFERER'],"sql8.net")) { $fl
2013-05-12 16:47:23 636
转载 2009-06-16 17:27 服务器:消息 823,级别 24,状态2,行1,连接中断
http://hi.baidu.com/wangfeng200810/item/0613b8b4a9820e44ba0e12f2 当你在查询分析器用select * 查询时会报上面的错误,你可以用topch或where子句查询,dbcc checktable('表1',REPAIR_ALLOW_DATA_LOSS) go 查询分析器提示: 服务器: 消息 7919,
2013-05-07 10:40:13 2123
转载 C# 生成随机数
private static char[] constant = { '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w'
2013-05-06 09:50:59 787
转载 关于sqlite3使用top的一些规则总结
最近需要做一些关于sqlite3里使用像在sqlserver 里top的一些语法,即根据条件显示前几条的数据记录,在sqlite3中没有top这样的语法,查了好多资料终于找到了可以实现相同效果的sqlite3 sql语句,供大家交流:sqlite3 sql是用limit这样的语法来实现的:例:select * from table where name='Xiao ming' orde
2013-05-05 23:44:52 668
转载 sqlite 中主键id自增的方法
困扰了一段时间,先前的解决方法是定义静态变量rid=0,然后把++rid插入数据库的id列中,但是每次重启的时候,rid就自动从0开始,就会导致有相同的id,插入数据库发生错误。今天在网上又查了一下,发现了以前试过的一个方法,定义Id 为INTEGER PRIMARY KEY,然后每次进行插入数据操作的时候,在id列插入空值,以前操作的时候没有成功,检索出来的数据id列为空值,没有预期的效果,但是
2013-05-05 23:44:04 3980
jQueryAPI,ajax十分好用
2012-05-14
delphi动态虚拟覆盖重载重定义的区别
2010-11-24
delphi动态虚拟覆盖重载重定义的区别
2010-11-24
高清缩略图代码,可删除原图不会出现在XXX.jpg正在使用中,水印代正在研究中
2009-09-29
经典cookie购物车源码[GridView实现]
2008-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人