随笔分类 -  [01] ASP.NET

上一页 1 2 3 4 5 6 ··· 9 下一页
ASP.NET用于开发或设计网页/网站。
摘要:不能加载 Microsoft Visual Studio 2008 Web Deployment Project。 原因:没有安装 WebDeploymentSetup_for_vs2008.msi http://www.bestechvideos.com/2009/04/07/asp-net-how-do-i-use-a-visual-studio-2008-web-deployment-p... 阅读全文
posted @ 2010-03-27 12:06 emanlee 阅读(332) 评论(0) 推荐(0) 编辑
摘要:编译asp.net 2.0 网站或项目时有错误。用VS重新编译。 阅读全文
posted @ 2010-03-27 11:48 emanlee 阅读(716) 评论(0) 推荐(0) 编辑
摘要:把Datatable导出为Excel protected void ExportDataTableToExcel(DataTable dt, string ExcelFileName)     {         //DataTable dt = GetData();   &#... 阅读全文
posted @ 2010-02-24 16:50 emanlee 阅读(1604) 评论(0) 推荐(0) 编辑
摘要:Hi all,This is the code that's not working in Safari 4: <%@ Page Language="C#" AutoEventWireup="true" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %><!DOCTYPE html PUBLIC " 阅读全文
posted @ 2010-02-23 18:06 emanlee 阅读(479) 评论(0) 推荐(0) 编辑
摘要:win2003 server下的IIS6默认设置下对每个运行在默认应用池中的工作者进程都会经过20多个小时后自动回收该进程,造成保存在该进程中的session丢失。 因为Session,Application等数据默认保存在运行该Web应用程序的工作者进程中,如果回收工作者进程,则会造成丢失。 解决办法: 修改配置,设置为不定时自动回收该工作者进程,比如设置为当超出占用现有物理内存60%后自... 阅读全文
posted @ 2010-02-23 17:14 emanlee 阅读(386) 评论(0) 推荐(0) 编辑
摘要:        Response.Redirect("~/MainScreen.aspx")  ‘成功       Server.Transfer("~/MainScreen.aspx")    &#... 阅读全文
posted @ 2010-02-20 18:40 emanlee 阅读(2971) 评论(0) 推荐(0) 编辑
摘要:Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts. ScriptResource.axd?d=d3xVu0qZmYMruyPLNxnMUx_rdkJV1pIsv0ccc7NFCXF1fP3E0YMzFBC... 阅读全文
posted @ 2010-02-20 14:51 emanlee 阅读(414) 评论(0) 推荐(0) 编辑
摘要:'ddlXXX' has a SelectedIndex which is invalid because it does not exist in the list of items. Parameter name: value Description: An unhandled exception occurred during the execution of the current web... 阅读全文
posted @ 2010-02-19 15:38 emanlee 阅读(1182) 评论(0) 推荐(0) 编辑
摘要:母版页是如何处理相对路径的?如果你使用的是静态文字,这一问题不会困扰你。不过,如果你加入了html标记的<img>标签或者指向其他资源的HTML标签,并且这个文件与母版页不在同一文件夹下面,问题就可能发生。 当你把母版页和内容页放在不同的目录时,问题就发生了。把母版页和内容页分放到不同的目录,这是大型网站推荐使用的最佳实践。实际上,微软建议你在专门的文件夹里保存所有的母版页。不过,如... 阅读全文
posted @ 2010-02-12 22:05 emanlee 阅读(4403) 评论(1) 推荐(1) 编辑
摘要:Server.Transfer()地址栏路径不变化,只是后台处理改变 另外server.transfer最好是本目录或者本目录下子目录,不要跨到上一级目录   大多数人使用Response.Redirect 将用户引导到另一个页面,而另一些人好像偏爱于神秘的Server.Transfer,那么,Response.Redirect 和Server.Transfer有什么区别? Resp... 阅读全文
posted @ 2010-02-12 21:31 emanlee 阅读(1131) 评论(0) 推荐(0) 编辑
摘要:IIS 5.0 Process Recycling Tool,IIS5Recycle 是作为一项服务运行在运行着 Windows 2000 和 Internet Information Services (IIS) 5.0 的计算机上的。 IIS5Recycle 的目的是要重复利用过程,在资源消耗问题影响到性能和可靠性之前将其影响降到最小程度。 这一工具可以根据存储在 Windows 注册表中的配... 阅读全文
posted @ 2010-02-08 21:48 emanlee 阅读(608) 评论(0) 推荐(0) 编辑
摘要:w3wp.exe占用CPU100%的解决办法 说点关于W3WP.EXE的知识. Q : W3WP.EXE,应用程序,应用程序池之间的关系 A : 一个应用程序池可以包含多个应用程序,一个应用程序池创建一个W3WP.EXE进程.那么我们就不能简单的说一个进程池对应一个W3WP.EXE进程了!其实是多个应用进程池对应一个W3WP.EXE进程的. Q : 如何启动和关闭W3WP.EXE这个进程 A :... 阅读全文
posted @ 2010-02-08 21:48 emanlee 阅读(17421) 评论(0) 推荐(1) 编辑
摘要:自动回收有好几种方式,也不知道那一种比较适合,而且回收工作进程是会把保存在内存里的Session清空,造成用户需要重新登陆的问题,所以自动回收要越少越好,以保证不会因为其中的一个用户使用了那个很烂的程式导致其他的用户都要重新登陆。 如果用了状态服务器或者是把Session保存到了数据库中去的程序自动回收后肯定是没有任何影响的,请求也不会中断还是一样继续运行,只是换了个工作进程继续为客户端工作,客户... 阅读全文
posted @ 2010-02-06 16:50 emanlee 阅读(9528) 评论(0) 推荐(0) 编辑
摘要:在IIS6下,经常出现w3wp.exe的内存及CPU占用不能及时释放,从而导致服务器响应速度很慢。 解决CPU占用过多: 1、在IIS中对每个网站进行单独的应用程序池配置。即互相之间不影响。 2、设置应用程序池的CPU监视,不超过25%(服务器为4CPU),每分钟刷新,超过限制时关闭。 根据w3wp取得是哪一个应用程序池: 1、在任务管理器中增加显示pid字段(任务管理器>查看>选择列... 阅读全文
posted @ 2010-02-06 11:54 emanlee 阅读(3733) 评论(0) 推荐(1) 编辑
摘要:在asp.net中的Session存储方式不象asp那样单一,一共提供了三种存储方式,由于最近一个2000多人使用的web软件出现了故障, 用户每天早上在某一时刻出现难以登陆现象,接着Session丢值出现,只有重启IIS,或机器.这时程序恢复正常了.整天都不会出现同样的问题 ,但是第二天依旧!这种现象持续了好几天,我检查了一下日志文件,高峰每秒访问人数大概20人左右,同时大概100多人在线,以后... 阅读全文
posted @ 2010-02-06 11:24 emanlee 阅读(266) 评论(0) 推荐(1) 编辑
摘要:MemoryLimit Tuning (ASP.NET v1.1) IIS 6.0 replaces theMemoryLimit machine.config setting from ASP.NET on Windows 2000 with IIS Manager UI configuration when running on Windows 2003. By default,... 阅读全文
posted @ 2010-02-06 11:15 emanlee 阅读(383) 评论(0) 推荐(0) 编辑
摘要:processModel Element in Machine.config (The processModel's describe is from MSDN Microsoft) The default processModel element in Machine.config of a particular server as follows: <system.web> &l... 阅读全文
posted @ 2010-02-06 11:14 emanlee 阅读(2183) 评论(0) 推荐(2) 编辑
摘要:How to : Use a Key Value Pair in your AutoCompleteExtender ( updated again... ) Hi all,This has come up time and again on the asp.net Ajax forums and has become the Top Voted issue for the AutoCompleteExtender Work Items . I had some time the other day and set upon to write a fix for this .How do yo 阅读全文
posted @ 2010-02-05 00:25 emanlee 阅读(908) 评论(0) 推荐(0) 编辑
摘要:指定缓存失效的数据库依赖项。可以具体到数据库和表。 具体配置具体要经过几个步骤: 1.   注册连接池 命令:aspnet_regsql -S 192.168.30.220"SQL2K -U sa -P sa -ed -d pubs -et -t test专门注册连接池的工具 在sql数据库的数据 库改变了,才改变缓存。 参数:   &#... 阅读全文
posted @ 2010-01-31 16:15 emanlee 阅读(410) 评论(0) 推荐(0) 编辑
摘要:找到一篇非常不错的关于WEB前端优化的文章: http://www.smashingmagazine.com/2010/01/06/page-performance-what-to-know-and-what-you-can-do/ 性能对于网站而言是非常重要的。 Website performance is a hugely important topic, so much so that t... 阅读全文
posted @ 2010-01-31 10:52 emanlee 阅读(464) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页