09 2011 档案

摘要:最近碰到一个问题,在DataGridView里添加数据后,当失去行焦点时,数据会自动删除的问题DataGridView数据来自DataTable一直没有找到问题所在. /// <summary> /// 添加新行到DataGridView中 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgv_NewRowNeeded(object sender, 阅读全文
posted @ 2011-09-20 14:37 HTL 阅读(1147) 评论(0) 推荐(0) 编辑
摘要:<system.web> <httpHandlers><!--.html文件不是重写的html文件--><add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" validate="true"/> <!--Url重写后的html文件--> <add verb="*.html" path="*.html" type="你的Ur 阅读全文
posted @ 2011-09-13 19:24 HTL 阅读(384) 评论(0) 推荐(0) 编辑
摘要:设置为Disabled属性的元素,并不会发送到服务器端,因此可能导致服务器获取不到值,解决办法:document.getElementById("txtname").readOnly=true;document.getElementById("txtname").style.backgroundColor='rgb(204, 204, 204)';可能达到同样的效果,而且服务器也可能获取值 阅读全文
posted @ 2011-09-02 14:52 HTL 阅读(2455) 评论(0) 推荐(0) 编辑
摘要:Server Error500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed.原因:Windows2008的系统和II7下Web.confing出错,网站并不提示以下错误 “/”应用程序中的服务器错误。配置错误解决办法:在根目录下添加Web.config文件,内容如下<configuration><system.webServer><httpErrors errorMode="Deta 阅读全文
posted @ 2011-09-01 18:45 HTL 阅读(1573) 评论(0) 推荐(0) 编辑
摘要:在地址栏中输入javascript:alert(document.lastModified)如果时间与当前的时间相同则表示是伪静态, 阅读全文
posted @ 2011-09-01 18:18 HTL 阅读(1004) 评论(0) 推荐(0) 编辑

htl
点击右上角即可分享
微信分享提示