上一页 1 ··· 287 288 289 290 291 292 293 294 295 ··· 341 下一页
摘要: Sql Server 中一个非常强大的日期格式化函数 Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06 S... 阅读全文
posted @ 2009-08-14 20:21 emanlee 阅读(632) 评论(0) 推荐(0)
摘要: 普通行列转换问题:假设有张学生成绩表(tb)如下:姓名 课程 分数张三 语文 74张三 数学 83张三 物理 93李四 语文 74李四 数学 84李四 物理 94想变成(得到如下结果): 姓名 语文 数学 物理 ---- ---- ---- ----李四 74 84 94张三 74 83... 阅读全文
posted @ 2009-08-14 17:34 emanlee 阅读(8451) 评论(0) 推荐(0)
摘要: 众所周知,Firefox有一个Error Console可以很方便的调试Javascript的错误,特别加上一些强大的扩展,比如Firebug,在Firefox下面写Javascript简直就是一种享受,最近写一个Mini Editor的时候,在Safari下面一直不太正常,Safari其实也有DEBUG功能的,只是默认没有开启而已,好了,我们的目标就是开启Safari 的DEBUG功能,一共有两... 阅读全文
posted @ 2009-08-14 12:44 emanlee 阅读(10948) 评论(0) 推荐(0)
摘要: AutoCompleteExtender in Safari create new line after TextBox, The first line work correctly, second line create new line after textbox. <asp:TextBox ID="txtSearchById" runat="server&... 阅读全文
posted @ 2009-08-14 12:44 emanlee 阅读(259) 评论(0) 推荐(0)
摘要: 在很多情况下我们需要将指定的数据库中的所有表都列出来。在使用c#进行软件开发时,我们有哪些方法可是实现这个目的呢?本人对此进行概要的总结,有以下6中方式可以实现这个目的。 1、sqldmo SQLDMO是操作SQLServer的理想的方式,如果您的数据库是SQLServer就可以考虑使用这种... 阅读全文
posted @ 2009-08-13 21:56 emanlee 阅读(603) 评论(0) 推荐(1)
摘要: Export GridView to Excel within an UpdatePanel There’s a ton of information online about exporting a DataGrid or GridView to Excel, but most variations do not consider the GridView may reside within ... 阅读全文
posted @ 2009-08-13 21:15 emanlee 阅读(528) 评论(0) 推荐(1)
摘要: 当用GridView导出Execl的时候,会发生只能在执行 Render() 的过程中调用 RegisterForEventValidation的错误提示。 有两种方法可以解决以上问题: 1.修改web.config(不推荐)<pages enableEventValidation ="false" ></pages> 2.直接在导出Execl的页面修改... 阅读全文
posted @ 2009-08-13 17:57 emanlee 阅读(267) 评论(0) 推荐(0)
摘要: 在接触Ajax Control Toolkit之后,发现CalendarExtender的使用真的很方便,只要把控件拖入就能够使TextBox弹出日期选择。 不过大家都是否有跟我一样的问题,那就是...怎么显示的都是英文的呢,这样的话用户一定会不接受!! 经过试验和多方查找,其实要解决这个问题很简单,使用Ajax Control Toolkit的控制之前,我们需要先放置一个【asp:Scrip... 阅读全文
posted @ 2009-08-13 17:44 emanlee 阅读(467) 评论(0) 推荐(0)
摘要: 美元金额正则表达式 Currency: ^\$?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$ C# codes: float num;bool isValid = float.TryParse(str,Numbe... 阅读全文
posted @ 2009-08-12 18:15 emanlee 阅读(543) 评论(0) 推荐(0)
摘要: ================= The source of the report definition has not been specified 原因缺少:ReportViewer1.LocalReport.ReportPath = reportPath ================= 动态装载Report(RDLC文件) An error has occurred beca... 阅读全文
posted @ 2009-08-12 13:54 emanlee 阅读(5392) 评论(0) 推荐(0)
上一页 1 ··· 287 288 289 290 291 292 293 294 295 ··· 341 下一页