- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 bs 下 关闭showModalDialog窗体
在子窗体中:在head里面添加:,防止弹出新页。关闭脚本:opner=null;_self.close();
2011-06-28 16:38:00
352
原创 winform中添加快捷键
给winform程序添加快捷键,而不是给某个button添加:protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (btnFront.Enabled == true) { if (keyData
2010-05-11 16:07:00
780
原创 winform 中 给DataGridView的表头添加CheckBox
在C/S架构中,给DataGridView的表头添加CheckBox控件: 添加类:/// /// 给DataGridView添加全选 /// public class AddCheckBoxToDataGridView { public static System.Windows.Forms.DataGridVi
2010-05-11 14:36:00
7223
4
原创 javascript 判断文件类型
function checkfiletype() { var fileName = document.getElementById().value; if (Trim(fileName)=="") { alert("请选择要上传的文件!"); document.getElementById(
2010-04-22 16:16:00
2048
原创 js trim方法
javascript 脚本中去除空格//来源自:http://www.yaosansi.com//去除左右空格function Trim(obj) { return obj.replace(/(^/s*)|(/s*$)/g, ""); } //去除左空格function LTrim(obj){ return obj.replace(/(^/
2010-04-22 16:02:00
376
原创 b/s 导出内容word中换行
将网页中的内容导出到WORD中时。代码应添加然后添加内容。就可以实现在WORD中换行。如: td1.InnerHtml=" word中自动换行";
2010-03-16 11:00:00
609
原创 b/s下 合并行
经常碰到客户要的表格需要合并行: 代码如下: #region 查询事件 /// /// 查询事件 /// protected void btnStat_Click(object sender, EventArgs e) { try { //得到显示字段
2010-01-27 16:33:00
348
原创 sql语句 得到 sql server 表中列的类型和说明
通过Sql语句获得 列的类型和说明: 得到的表头:表名|列名|类型|说明 1:针对sql server 2000,在sql2000中,使用:sysobjects,syscolumns和sysproperties表 SELECT o.name as table_name,c.name AS col_name,type_name(c.xtype) AS type_name,
2009-12-28 15:34:00
826
原创 datagridview checkbox控件
在Winform中,DataGridView中使用Checkbox控件时 //单击单元格事件private void dgvTables_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) {
2009-12-28 10:16:00
860
转载 document.location.search
document.location.search 页面传值的参数例如: http://www.csdn.net/login.aspx?uid=userid&type=logintype document.location.search 为 ?uid=userid&type=logintype
2009-12-23 16:33:00
958
转载 站点收藏
1. http://www.sourceforge.com2. http://www.codeproject.com3. http://www.c-sharpcorner.com/4. http://martinfowler.com/5. http://channel9.msdn.com/default.aspx6. http://www.ddj.com/7. http://blog
2008-05-04 17:19:00
462
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人