用户操作
[即时聊天] [发私信] [加为好友]
孙福林ID:jdlsfl
30370次访问,排名3886好友111人,关注者147
软件
jdlsfl的文章
原创 92 篇
翻译 0 篇
转载 53 篇
评论 44 篇
福林天下的公告
If If you can keep your head when all about you Are losing theirs and blaming it on you; If you can trust yourself when all men doubt you, But make allowance for their doubting too; If you can wait and not be tired by waiting, Or, being lied about, don’t deal in lies, Or, being hated, don’t give way to hating, And yet don’t look too good, nor talk too wise; If you can dream - and not make dreams your master; If you can think - and not make thoughts your aim; If you can meet with triumph and disaster And treat those two impostors just the same; If you can bear to hear the truth you’ve spoken Twisted by knaves to make a trap for fools, Or watch the things you gave your life to broken, And stoop and build ’em up with 5)worn-out tools; If you can make one heap of all your winnings And risk it on one turn of pitch-and-toss, And lose, and start again at your beginnings And never breathe a word about your loss; If you can force your heart and nerve and sinew To serve your turn long after they are gone, And so hold on when there is nothing in you Except the Will which says to them: “Hold on !”; If you can talk with crowds and keep your virtue, Or walk with Kings - nor lose the common touch; If neither foes nor loving friends can hurt you; If all men count with you, but none too much; If you can fill the unforgiving minute With sixty seconds “worth of distance run”Yours is the Earth and everything that’s in it, And - which is more - you’ll be a Man !
最近评论
kaku88:論壇就是要有熱心的人才會茁壯, 感謝樓主了
everspring79:公司的架构师往往不具备架构师的基本知识储备和思路(这是最要命的),往往就从对产品最熟悉的人里面矮子里拔将军,顶多算领域专家,至于如何作出最具扩展性和封装特性的软件是毫无思路.
sap99:www.sap99.com/,SAP99资料多多

SAP免费资料下载
http://www.sap99.com

有很多的学习资料,推荐一下,
sap99:www.sap99.com/,SAP99资料多多

SAP免费资料下载
http://www.sap99.com

有很多的学习资料,推荐一下,
sb:chenjiehong? !
文章分类
收藏
    相册
    IT
    csdn(RSS)
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 一些提高ASP.NET性能的方法收藏

    新一篇: 给.net初学者的一些建议(共勉之) | 旧一篇: 2007年你必须学习的10项.NET技术

    禁用不必要的视图状态。

    例如控件或页面的。EnableViewState属性设置为false。或者在web.config文件中进行指定。

    控件的设定直接设置相应控件的EnableViewState属性即可。

    页面的设定在<%@ Page EnableViewState="false" %>中设定即可。

    Web.Config文件的设定,找到<pages>元素,在其中添加属性设置EnableViewState="false"即可。

     对于安全性要求不高的页面可以通过禁用页面的EnableViewStateMAC防篡改和加密功能,也可以提供页面加载的速度。

     将代码中的Response.Redirect跳转换成Server.Transfer命令。

    Response.Redirect使客户机和服务器之间进行了两次往返,首先客户端将自己的跳转命令传给服务器,服务器对当前请求跳转的页面做出响应,返回要跳转到的页面与相应的事件响应,然后客户端接收到这个命令开始进行跳转,第二次向服务器发出新的跳转到的页面请求,然后服务器做出响应,将新的页面返回给客户端。这样就进行了两次往返。

    Server.Transfer则把执行转移到应用程序的另一个页面。这是某种“服务器端的重定向”,客户端不会察觉到有重定向发生。此时客户端将跳转命令发给服务器后,页面重定向是在服务器上处理的,没有进行客户端之间的往返,直接将重定向后的页面结果发送给客户端,这样仅执行了一次客户端和服务器之间的往返,减少了一次,从而达到性能的提升。

     谨慎使用Web控件,每个Web控件在加载时都比相应的HTML控件在服务器生成时多耗费一些资源,例如一个Lable控件,如果禁用来显示一个标题,则没有必要每次都让服务器重新生成它,直接换成几个字显示就可以了,因为这些控件必须被初始化,必须设置属性,事件必须处理等。

     把对象放置到会话状态中,以后再使用。这是非常方便的,但这种方便性是有代价的。会话状态默认是启用的,这意味着ASP.NET为使会话状态功能可用需要做很多工作,即使您根本不使用会话状态也是如此。因此,对于不执行任何会话处理的页面来说,应该覆盖它们的默认值。

    禁用会话状态的方法是在Page指令中把EnableSessionState特性设为false。

    如果一个页面从会话状态读取值(但不写新的值或修改现有的值),那么它是以某种只读的方式使用会话状态。在这些情况下,可以把EnableSessionState设为ReadOnly,这可以让页面访问会话状态,但开销较少(因为省略了写的功能)。

    如果应用程序中任何地方不使用会话状态,可以在应用程序级别关闭会话状态:在Web.Config文件中把<SessionState>元素的mode特性设为Off。

     

    发表于 @ 2007年11月29日 09:18:00|评论(loading...)|编辑

    新一篇: 给.net初学者的一些建议(共勉之) | 旧一篇: 2007年你必须学习的10项.NET技术

    评论:没有评论。

    发表评论  


    登录
    Csdn Blog version 3.1a
    Copyright © 福林天下