学无止境

Life-long learning
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年8月19日

摘要: 1.如何删除表中的重复记录?(这里指记录的每个字段都要相同) select distinct * into #temp from tab delete tab insert tab select * from #temp drop table #temp 2.怎样返回数据库中用户表的表单名 select name from sysobjects... 阅读全文

posted @ 2008-08-19 10:38 anytime8 阅读(368) 评论(1) 推荐(0) 编辑

2008年8月15日

摘要: VB.NET and C# Comparison 两种语法的基本对比: http://www.harding.edu/fmccown/vbnet_csharp_comparison.html 阅读全文

posted @ 2008-08-15 21:24 anytime8 阅读(208) 评论(0) 推荐(0) 编辑

2008年8月12日

摘要: Private Sub SpanGrid() Dim i, j, m As Integer Dim intSpan As Integer, NowSpan As Integer = 0 Dim strTemp, temp As String For m = 0 To 1 NowSpan = 0 ... 阅读全文

posted @ 2008-08-12 14:08 anytime8 阅读(197) 评论(0) 推荐(0) 编辑

摘要: 最近一个项目需要把报表的表格导入excel,在网上找了一些方法,比较研究了一下,记在这里,备忘。 表格例子如下: html 表格导出道Excel 列标题1 列标题2 类标题3 列标题4 列标题5 aaa bbb ccc ddd eee AAA BBB CCC DDD EEE FFF GGG HHH III JJJ 1、js的方法 A、将整个表格拷贝到EXCEL中 fun... 阅读全文

posted @ 2008-08-12 10:05 anytime8 阅读(433) 评论(0) 推荐(0) 编辑

摘要: 在Asp.net开发中,浏览器刷新重复触发事件,导致重复提交的问题,下面有几种解决方法,我针对适用情况和利弊做一个简单的分析。 方法一:检测数据表,看是否有相同的数据。这种方法对插入数据可能意义更大些,不过如何定义是相同的数据,是个麻烦的事。同时,如果不是插入数据,是删除呢,就不适用了。 方法二:提交后,转向一个过渡页面,然后再从过渡页面返回到当前的页面。这就要求在提交后,要把当前页面的URL地址... 阅读全文

posted @ 2008-08-12 10:02 anytime8 阅读(436) 评论(0) 推荐(0) 编辑

摘要: /// /// 合并GridView列中相同的行 /// /// GridView对象 /// 需要合并的列 public static void GroupRows(GridView GridView1, int cellNum) { int i = 0, rowSpanNum = 1; ... 阅读全文

posted @ 2008-08-12 09:59 anytime8 阅读(247) 评论(0) 推荐(0) 编辑

摘要: 无论是gridview还是datagrid,在绑定数据后,列宽都不是固定的,在设计时是没法设定的,只能通过绑定是触发的事件来重新设定。参考http://msdn2.microsoft.com/zh-cn/library/ms178296(VS.80).aspx 的解释. gridview的代码: protected int widestData; protected void GridView... 阅读全文

posted @ 2008-08-12 09:58 anytime8 阅读(382) 评论(0) 推荐(0) 编辑

摘要: ’ /> 全选 ... 阅读全文

posted @ 2008-08-12 09:40 anytime8 阅读(220) 评论(0) 推荐(0) 编辑

2008年8月11日

摘要: ⊕ASP.Net与Access数据库操作的使用代码总结 准备工作必须先在.cs文件顶部引入命名空间:using System.Data ;using System.Data .OleDb ; DataReader 作用:DataReader阅读类,执行数据的“只向前”的读取。 问:什么是DataReader?答:ADO.NET DataReader对象可以从数据库中检索只读、只进的数据流... 阅读全文

posted @ 2008-08-11 12:10 anytime8 阅读(558) 评论(0) 推荐(0) 编辑

摘要: ⊕ASP.Net与Sql Server数据库操作的使用代码总结 (访问烁空主页) 准备工作 必须先在.cs文件顶部引入命名空间: using System.Data ; using System.Data.SqlClient; Da... 阅读全文

posted @ 2008-08-11 12:09 anytime8 阅读(992) 评论(3) 推荐(0) 编辑

摘要: 字体大小设置js 默认 放大 变小 博客园首页(内容范围:.NET技术、Web技术、架构设计、项目管理、经验总结、业界评论) 原创文章如转载,请注明出处:泡泡网络教程 [ http://www.hugo8.com ] 阅读全文

posted @ 2008-08-11 11:39 anytime8 阅读(5986) 评论(0) 推荐(0) 编辑

2008年8月9日

摘要: 怎么成为优秀的软件模型设计者? PowerDesigner教程系列(一)概念数据模型 阅读全文

posted @ 2008-08-09 13:22 anytime8 阅读(609) 评论(0) 推荐(0) 编辑

摘要: How to Use Part 1 - Setup Lightbox 2 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header (in this order). ... 阅读全文

posted @ 2008-08-09 13:22 anytime8 阅读(310) 评论(1) 推荐(0) 编辑

2008年8月8日

摘要: 无标题页 ... 阅读全文

posted @ 2008-08-08 15:25 anytime8 阅读(203) 评论(0) 推荐(0) 编辑

2008年8月6日

摘要: #Region "---- 在此处放置初始化页的用户代码" Public Overrides Sub BindInitPage() Try Dim cls As New Cls_TB_Area cls.find(Session("UserRight"), Session("UserLevel")) Di... 阅读全文

posted @ 2008-08-06 15:31 anytime8 阅读(959) 评论(0) 推荐(0) 编辑