上一页 1 ··· 283 284 285 286 287 288 289 290 291 ··· 337 下一页
摘要: 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 阅读(255) 评论(0) 推荐(0)
摘要: 在很多情况下我们需要将指定的数据库中的所有表都列出来。在使用c#进行软件开发时,我们有哪些方法可是实现这个目的呢?本人对此进行概要的总结,有以下6中方式可以实现这个目的。 1、sqldmo SQLDMO是操作SQLServer的理想的方式,如果您的数据库是SQLServer就可以考虑使用这种... 阅读全文
posted @ 2009-08-13 21:56 emanlee 阅读(594) 评论(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 阅读(525) 评论(0) 推荐(1)
摘要: 当用GridView导出Execl的时候,会发生只能在执行 Render() 的过程中调用 RegisterForEventValidation的错误提示。 有两种方法可以解决以上问题: 1.修改web.config(不推荐)<pages enableEventValidation ="false" ></pages> 2.直接在导出Execl的页面修改... 阅读全文
posted @ 2009-08-13 17:57 emanlee 阅读(266) 评论(0) 推荐(0)
摘要: 在接触Ajax Control Toolkit之后,发现CalendarExtender的使用真的很方便,只要把控件拖入就能够使TextBox弹出日期选择。 不过大家都是否有跟我一样的问题,那就是...怎么显示的都是英文的呢,这样的话用户一定会不接受!! 经过试验和多方查找,其实要解决这个问题很简单,使用Ajax Control Toolkit的控制之前,我们需要先放置一个【asp:Scrip... 阅读全文
posted @ 2009-08-13 17:44 emanlee 阅读(465) 评论(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 阅读(541) 评论(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 阅读(5389) 评论(0) 推荐(0)
摘要: 显示动态时间 10:14:36 Today it is Sunday 将当前日期转换成字符串 Sun, 9 Aug 2009 02:11:38 UTC <html> <head> <script type="text/javascript"> function startTime() { var today=new Date() var ... 阅读全文
posted @ 2009-08-09 10:17 emanlee 阅读(824) 评论(0) 推荐(0)
摘要: 最近做一个东西用到DetailsView,所以看了一下资料,用了一下,以前也没用过这个控件,不过与GridView结合起来使用还不错的,因为GridView自带了增、删、改功能,但没有增加,DetailsView的结合就很好的粥补了这一缺点,也可以使GridView中查看单条数据记录的详细信息变是更加方便。 HTML中的代码: <%@ Page Language="C#&quo... 阅读全文
posted @ 2009-08-08 21:17 emanlee 阅读(841) 评论(0) 推荐(0)
摘要: asp.net2.0用登陆控件进行用户户登录的时候经常会出现: 回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否... 阅读全文
posted @ 2009-08-08 21:14 emanlee 阅读(963) 评论(0) 推荐(0)
上一页 1 ··· 283 284 285 286 287 288 289 290 291 ··· 337 下一页