2008年8月26日
摘要: excel导入数据库的代码 try { OleDbDataReader dr1 = OAConfig1.MyReaderexcel("/source_file.xls","00",3,"SELECT * FROM [空间$]"); if(dr1.R... 阅读全文
posted @ 2008-08-26 13:38 pretty 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 去掉HTML字符:System.Text.RegularExpressions.Regex.Replace(HTMLStr, "]*>", ""); o.innerHTML=o.innerHTML.replace(/(\/]*)\/?>/gi,''); o.innerHTML=o.innerHTML.replace(/(\/]*)\/?>/gi,''); if(e.width > 180 || ... 阅读全文
posted @ 2008-08-26 13:36 pretty 阅读(434) 评论(3) 推荐(0) 编辑
摘要: var b = isNaN(document.getElementById("txtCoursesTime").value); if(b) { alert("请在课程学时输入数字!"); return false; } 事件:onMouseOver="可以是方法hello()" target="_bla... 阅读全文
posted @ 2008-08-26 13:36 pretty 阅读(149) 评论(0) 推荐(0) 编辑
摘要: select t.id,t.name,(case when u.dt is null then t.dt else u.dt end)as updatedt from testta t left join (select id,max(dt) as dt from updatedate group by id) as u on t.id=u.id dt是时间 删除列:alter table te... 阅读全文
posted @ 2008-08-26 13:35 pretty 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 删除按钮的提示: if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem) { Button btnDele = (Button)e.Item.Cells[9].Controls[1]; btnDele.Attributes.Add("onclick","javascript... 阅读全文
posted @ 2008-08-26 13:34 pretty 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 压缩图片:img { max-width: 500px; width:expression(this.width > 500 ? "500px" : this.width);} 用表格做网页排版的时候,一般都能正常使用。偏偏有时会碰到一段连续的英文词或者一堆感叹号(!!!)把网页就撑开的现象:( 总结了一下,只要在CSS中定义了如下句子,可保网页不会再被撑开了。 table{table-la... 阅读全文
posted @ 2008-08-26 13:34 pretty 阅读(271) 评论(0) 推荐(0) 编辑
  2008年4月14日
摘要: 1 SQL中的单记录函数 21.ASCII 3返回与指定的字符对应的十进制数; 4SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; 5 6 A A ZERO SPACE 7--------- ---------... 阅读全文
posted @ 2008-04-14 18:21 pretty 阅读(399) 评论(0) 推荐(0) 编辑
  2008年4月13日
摘要: JAVASCRIPT教程--从入门到精通 http://www0.ccidnet.com/school/web/2001/05/09/70_4115.html 阅读全文
posted @ 2008-04-13 15:35 pretty 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 您正在看的SQLserver教程是:SQL语句大全。--语 句 功 能 --数据操作 SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 --数据定义 CREATE TABLE --创建一个数据库表 DROP TABLE --从数据库中删除表 ALTER TABLE --修改数据库... 阅读全文
posted @ 2008-04-13 15:28 pretty 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Microsoft OLAP and Microsoft Analysis Services http://www.mosha.com/msolap/index.htm 阅读全文
posted @ 2008-04-13 15:20 pretty 阅读(133) 评论(0) 推荐(0) 编辑