仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1675|回复: 19
打印 上一主题 下一主题

[学习教程] ASP网页设计若何加强ASP法式功能(4)

[复制链接]
逍遥一派 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-3 23:35:27 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
ASP脚本是采用明文(plain text)方式来编写的。法式|功能   2000-08-14・ 编译:甘冀平・Yesky

技能16:在任何能够时利用Server.Transfer,而不要用Response.Redirect

  Response.Redirect告知阅读器恳求另外一个分歧的页面,这经常用于引诱用户到登录页面或失足处置页面。因为重定向强制了一个新页面恳求,了局是阅读器必需要与Web办事器轮回2次,而且Web办事器必需处置一个额定的恳求。IIS5.0引进了一个新功效Server.Transfer,它履行在统一办事器上的页面传输,这将防止额定的阅读器-Web办事器的数据轮回,构成优秀的体系功能,关于用户也有较好的呼应工夫。

技能17:防止利用办事器变量

  存取办事器变量招致Web站点创立一个特别的恳求并搜集一切的办事器变量,而并非你请求的谁人变量。这相似于在文件夹中取回一个特别的文件,要想取回一个文件,就得起首获得地点文件夹的信息。

  不要存取不法的Request对象(好比Request("Data")),关于那些不在Request.Cookies、Request.Form、Request.QueryString或Request.ClientCertificate中的项目,隐含就指向了Request.ServerVariables变量,而这些变量要比其他纠合对象慢很多。

技能18:调剂Web办事器

  有几个IIS调剂参数可以进步站点功能。好比,关于IIS4.0,咱们常常发明进步ASP ProcessorThreadMax参数可以发生严重的后果,出格是在那些要守候后台资本好比数据库或两头件产物的站点。在IIS5.0中,你可以发明调剂ASP线程通道要比调剂AspProcessorThreadMax后果更佳。

最好的设置装备摆设设定取决于使用法式代码、撑持的硬件装备和客户真个任务量。发明最好设置装备摆设的独一办法就是测试。

相干参考资本

Optimizing ASP scripts
Developing Scalable Web Applications
Got Any Cache? by Nancy Winnick Cluts
Maximizing the Performance of Your Active Server Pages by Nancy Winnick Cluts
15 Seconds: Performance Section
Enhancing Performance in ASP - Part I by Wayne Plourde
When is Better Worse? Weighing the Technology Trade-Offs by Nancy Winnick Cluts
Speed and Optimization Resources by Charles Carroll
Tuning IIS
The Art and Science of Web Server Tuning with Internet Information Services 5.0
Leveraging ASP in IIS 5.0 by J.D. Meier
Tuning IIS 4.0 for High Volume Sites by Michael Stephenson
Tuning Internet Information Server Performance by Mike Moore
Navigating the Maze of Settings for Web Server Performance Optimization by Todd Wanke
Managing Internet Information Server 4.0 for Performance by Hans Hugli
ADO and SQL Server
Top Ten Tips: Accessing SQL Through ADO and ASP by J.D. Meier
Improve the Performance of your MDAC Application by Suresh Kannan
Pooling in the Microsoft Data Access Components by Leland Ahlbeck and Don Willits
SQL Server: Performance Benchmarks and Guides
Improving the Performance of Data Access Components with IIS 4.0 by Leland Ahlbeck
Microsoft Data Access Components (MDAC) and ActiveX Data Objects (ADO) Performance Tips by Leland Ahlbeck
Microsoft SQL Server 7.0 Practical Performance Tuning and Optimization - The Server Perspective by Damien Lindauer
Microsoft SQL Server 7.0 Practical Performance Tuning and Optimization - The Application Perspective by Damien Lindauer
Accessing Recordsets over the Internet by Dino Esposito
ASP components and threading models
ASP Component Guidelines by J.D. Meier
Q243548: INFO: Design Guidelines for VB Components under ASP
Threading Models Explained by Nancy Winnick Cluts
So Happy Together? Using ActiveX components with Active Server Pages by Nancy Winnick Cluts
Developing Active Server Components with ATL by George Reilly
Agility in Server Components by Neil Allain
Building High-Performance Middle-Tier Components with C++ by Jon Flanders
Active Server Pages and COM Apartments by Don Box
House of COM: Active Server Pages by Don Box
House of COM: Contexts by Don Box
House of COM: Performance Trade-offs of the Windows 2000 Component Execution Environment by Don Box
Building COM Components That Take Full Advantage of Visual Basic and Scripting by Ivo Salmre
Component Design Principles for MTS
Dictionary components
Creating a Page Cache Object by Robert Coleridge
Abridging the Dictionary Object: The ASP Team Creates a Lookup-Table Object by Robert Carter
Caprock Dictionary
Site Server Commerce Edition includes a dictionary component
Session state
Q175167: HOWTO: Persisting Values Without Sessions
Q157906: HOWTO: How To Maintain State Across Pages with VBScript
XML-based Persistence Behaviors Fix Web Farm Headaches by Aaron Skonnard
House of COM: Stateless Programming by Don Box
Performance and scalability
Blueprint for Building Web Sites Using the Microsoft Windows DNA Platform
Server Performance and Scalability Killers by George Reilly
Microsoft Visual Studio Scalability Center
Fitch & Mather Stocks 2000
Tuning the FMStocks Application
High-Performance Visual Basic Apps by Ken Spencer
Duwamish Books, Phase 4
Top Windows DNA Performance Mistakes and How to Prevent Them by Gary Geiger and Jon Pulsipher
Building from Static HTML to High-Performance Web-Farms by Shawn Bice
Tools
Microsoft Web Application Stress Tool
I Can? Stress It Enough -- Load Test Your ASP Application by J.D. Meier
Windows DNA Performance Kit
</p>  ASP由于使用了COM组件所以它会变的十分强大,但是这样的强大由于Windows NT系统最初的设计问题而会引发大量的安全问题。只要在这样的组件或是操作中一不注意,哪么外部攻击就可以取得相当高的权限而导致网站瘫痪或者数据丢失;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-15 21:47

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表