随笔分类 -  Asp.Net

Asp.Net
摘要:http://www.sufeinet.com/thread-655-1-1.html 阅读全文
posted @ 2014-05-06 09:19 Kazaf 阅读(157) 评论(0) 推荐(0)
摘要:表单只允许提交一次:在提交前把提交按钮设置成disable即可。有两点需要注意:一是页面验证没通过不能disable;二是submit类型的按钮disable后,服务器端提交事件不能触发,只能用button类型的按钮。functionclickOnce(btn,msg){ if(typeof(Page_ClientValidate)=='function'){if(Page_ClientValidate()==false){//Ensurethatthebuttonisnotoftype"submit" if(btn.getAttribute('ty 阅读全文
posted @ 2013-01-24 15:32 Kazaf 阅读(713) 评论(0) 推荐(0)
摘要:在表内添加组,分组表达式为=Int((RowNumber(Nothing) - 1) / 3),取消包括组头和包括组尾,勾选在结尾处分页: 阅读全文
posted @ 2012-02-03 11:53 Kazaf 阅读(457) 评论(0) 推荐(0)
摘要:<customErrorsmode="RemoteOnly"defaultRedirect="/ErrorPages/Oops.aspx"> <errorstatusCode="404"redirect="/ErrorPages/404.aspx"/></customErrors>http://www.asp.net/web-forms/tutorials/deployment/displaying-a-custom-error-page-cs 阅读全文
posted @ 2011-12-13 16:03 Kazaf 阅读(135) 评论(0) 推荐(0)
摘要:我用的是Microsoft ReportView 控件,利用 rdcl 文件,产生报表。 在 server 2003上发布的很好,但是在 server 2008 上发布的时候, ReportView 是显示不了数据。最后的解决办法, 一: 安装 ReportView.exe, 产生 环境 GAC(即所调用的dll) 二: 更改应用连接池 为,Classic .Net AppPool最后问题解决,可以显示ReportView的数据. 阅读全文
posted @ 2011-11-22 08:40 Kazaf 阅读(433) 评论(0) 推荐(0)
摘要:I found a solution in this forum. I changed the web config as:From<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />To<add key="ChartImageHandler" value="storage=file;timeout=20;" /> 阅读全文
posted @ 2011-11-21 10:02 Kazaf 阅读(913) 评论(0) 推荐(0)
摘要:在web.config文件中设置了form验证,可在cookie超时过期后自动跳转到登录页面login.aspx,可是我的用的是框架iframe机构,网上查了下原来是这样子做“ 在页面login.aspx,的<head></head>之间加入<script language="JavaScript"> if (window != top) top.location.href = location.href; </script> 这样就解决超时跳转出框架的问题了。 阅读全文
posted @ 2011-07-15 12:58 Kazaf 阅读(650) 评论(0) 推荐(0)