盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

asp+的几个特点(二)

时间:2025/1/3作者:未知来源:盾怪网教程人气:

[摘要]asp+的几个特点二 翻译整理:jjx( http://www.cnscript.com) 原文:http://www.asptoday.com/articles/20000713.htm asp+...

asp+的几个特点二
翻译整理:jjx( http://www.cnscript.com)
原文:http://www.asptoday.com/articles/20000713.htm
asp+控件
asp+控件分原生控件(intrinsic controls),列表控件(list controls),丰富功能控件(rich controls),校验控件(validation controls),以下时详细的说明
原生控件
创建html风格的控件,有
<TABLE> <TR> <TH> <TD>
<FORM> <INPUT> <SELECT> <TEXTAREA>
<BUTTON> <A> <IMG>
使用时在html风格控件中加入ruanat=server
如<textarea name=Message runat=server>
列表控件
包括Repeater, DataList and DataGrid controls. 主要用用户轻松展示数据集之用

丰富功能控件
向客户端输出比较复杂的html对象,像月历,listview等,包括 Calendar和AdRotator controls. 最后发布版本还包括 TreeView, ImageGenerator,和其他控件
使用举例
FORM runat="server">
<asp:Calendar runat="server" />
</FORM>
检验控件
主要用户检查用户的输入,包括
RequiredFieldValidator,CompareValidator,RangeValidator,RegularExpressionValidator,CustomValidator,ValidationSummary

[]ASP+ Web Services[/b]
使用soap(简单对象访问协议)访问其他web services

应用和会话状态管理
application.session变化不是很大
但session的一个改变,可能使asp中打开新窗口是的会话有时会丢失的bug彻底消除,因为session管理使用了State Server Process

asp+程序的配置和分发
全局配置文件:config.web
应用程序定义文件:global.asax,除了支持asp中的Application_OnStart, Application_OnEnd, Session_OnStart and Session_OnEnd 外,还支持像as Application_BeginRequest, Security_OnAuthenticate 和其他事件

错误处理
1、errorPage
<%@Page ErrorPage="/errorpages/thispage.aspx"%>
任何错误将导向/errorpages/thispage.aspx页
2、语言上的增强:支持try...catch...finally (vb7)
3、asp+包括全面的跟踪工具,用于调试asp+程序
其它特点
1、新的安全特点:Passport Authentication(或者是Microsoft 护照认证吧)
2、服务器端缓冲 (Server-side caching)

asp+开始具有xml规范,asp+ 在windows平台上的表现将会使jsp在 windows 平台上无没有任何可言之处

(出处:热点网络)

关键词:asp+的几个特点(二)




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版