拉屎出血是什么原因| 什么叫原研药| 夏天煲鸡汤放什么材料| 印度为什么叫三哥| 大葱和小葱有什么区别| 胆结石不能吃什么食物| 秒后面是什么单位| 靶点是什么意思| 女性更年期潮热出汗吃什么药| 打虫药什么时候吃合适| 桑黄是什么| 沉香茶属于什么茶| nap是什么意思| 辞退和开除有什么区别| 西游记是什么时候写的| 人到无求品自高什么意思| 风调雨顺的下联是什么| 不是一路人是什么意思| 掉头发补充什么维生素| 金主是什么意思| 一个月一个并念什么| 染色体是什么意思| 脚背痛什么原因引起的| strange是什么意思| 白色玉米是什么玉米| 阿托伐他汀治什么病| 内能与什么因素有关| 人乳头瘤病毒58型阳性是什么意思| 为什么子宫会下垂| 负罪感是什么意思| 男人后背有痣代表什么| 重返20岁韩国版叫什么| 军校毕业是什么军衔| 水果皇后是什么水果| 你喜欢我什么我改| 男生叫你姑娘什么意思| 胃角在什么位置图片| buds是什么意思| 拉不出屎吃什么药| ct是什么单位| 长长的什么| 孕妇吃什么坚果比较好| 梦到别人怀孕了是什么意思| ed什么意思| 心意是什么意思| 花可以组什么词| 肌肉痛是什么原因| 孕妇吃蓝莓对胎儿有什么好处| 自费是什么意思| 左下腹痛挂什么科| 金木水火土代表什么| 胆疼是什么原因| 图片px是什么意思| 章鱼的血液是什么颜色| 百日咳是什么意思| 生僻字什么意思| 水和什么相生| 念字五行属什么| 碎石后要注意些什么| 橄榄菜是什么菜| 甲状腺炎有什么症状表现| 慢工出细活什么意思| 养肺补肺吃什么药最好| 乳腺结节和乳腺增生有什么区别| 什么运动使人脸部年轻| 来龙去脉是什么生肖| 失眠什么意思| 伤寒病有什么症状| 血糖高有什么影响| 早餐做什么简单又好吃| 四月四号是什么星座| 执业药师是干什么的| 认知是什么| bebe是什么牌子| 祛湿喝什么| 县法院院长是什么级别| 为什么会宫颈糜烂| 胆结石是什么症状| 梅毒是什么病| 不经意间是什么意思| 骞读什么字| 下巴长硬包是什么原因| 长白班是什么意思| 右眼睛跳是什么意思| 招财进宝是什么生肖| 什么对眼睛好| 长痱子用什么药| 老公不交工资意味什么| 什么是一体机| 曹操字什么| 梦见抬死人是什么意思| 一什么机枪| 右边脸疼是什么原因| 吃豆腐有什么好处| 强迫症吃什么药效果好| ads是什么| 大便遇水就散什么原因| 76年属什么的生肖| 邓绥和阴丽华什么关系| 大龄补贴需要什么条件| 鸡尾酒是什么意思| 羟苯乙酯是什么东西| iv医学上什么意思| 什么叫基因检测| 脖子上有痣代表什么| 求人办事送什么礼物好| 媒婆是什么意思| 九月十三是什么星座| 陆勤合格什么意思| 漂洗是什么意思| 闭口粉刺是什么原因引起的| 唇色深的人适合什么颜色的口红| 煮花生放什么调料| 看阴茎挂什么科| 病入膏肓是什么意思| 对什么感兴趣| 指甲竖条纹是什么原因| 山药与什么食物相克| 老年人腿无力是什么原因导致的| 中东为什么叫中东| 后背发麻是什么原因| 糜烂性脚气用什么药| r医学是什么意思| 扒灰是什么意思| 什么颜色加什么颜色等于蓝色| 乙亥日五行属什么| 6月11日什么星座| 碘酒是什么| 8月12号是什么星座| 暗卫是什么意思| 9.25什么星座| 正月初四是什么星座| 人间烟火什么意思| 暑湿是什么意思| 走仕途是什么意思| 孤单的反义词是什么| 1969年什么时候退休| 健康的舌苔是什么样的| 二氧化碳结合力是什么| 什么是代沟| 电磁炉滴滴响不加热是什么原因| 荠菜什么时候播种最好| 桑树枝煮水有什么功效| 西布曲明的危害及副作用分别是什么| 拉稀吃什么药好| 金线莲有什么功效| 为什么会长口腔溃疡的原因| 鱼腥味是什么妇科病| 喝什么养胃| 潜伏是什么意思| 感染幽门螺旋杆菌吃什么药| 扫地僧是什么意思| 不放屁是什么原因| 消化不良大便什么颜色| 下面痒用什么清洗最好| 江西庐山产什么茶| 订单号是什么| 狂犬疫苗为什么要打五针| 急性胃炎吃什么食物好| beam是什么意思| 当家作主是什么生肖| 心脏不舒服做什么检查| 开瑞坦是什么药| 越位是什么意思| 蓝绿色是什么颜色| 像狐狸的狗是什么狗| 情绪波动是什么意思| 捧杀是什么意思| 新西兰现在是什么季节| 银属于五行属什么| 老年人脚肿什么原因| 冰晶是什么| 零申报是什么意思| 游离脂肪酸是什么| 母亲节送母亲什么礼物| 2000年属什么生肖| pa是什么材质| 百草枯什么味道| 色斑是什么原因引起的| 什么东西有脚却不能走路| 王玉读什么| 抬旗是什么意思| 狗吐黄水吃什么药| 布施蚂蚁什么食物最好| 禀赋是什么意思| 胃潴留是什么意思| 卉字五行属什么| 二月初五是什么星座| mmc是什么意思| 肌肉拉伤吃什么药| 大便溏薄是什么意思| 萤火虫为什么发光| 业障是什么意思| 4点是什么时辰| 手脱皮吃什么维生素| 肝右叶占位是什么意思| 变性乙醇是什么东西| 胡子长得快是什么原因| 口腔发粘是什么原因| 柏拉图之恋是什么意思| 八月二十六是什么星座| 吃什么可以淡斑| 大姨妈是什么| 送向日葵代表什么意思| 什么是ph值| 喝茶有什么坏处| 丙肝吃什么药效果好| ifound是什么牌子| 总是出汗是什么原因| 老虎头上为什么有王字| 72岁属什么生肖| 藩王是什么意思| 中药木香的功效与作用是什么| 长期口臭吃什么药| 泡脚有什么好处| bacon是什么意思| 口里发酸是什么原因| 什么水果营养价值最高| 例假可以吃什么水果| 芒种是什么季节| 魔芋长什么样子| 羊肚菌有什么功效和作用| 69年出生属什么| 美国为什么要打伊朗| ryan是什么意思| 什么菜不能放醋| 0到3个月的婴儿惊吓吃什么药| 瘘管是什么| 86岁属什么生肖| 沙弥是什么意思| 筷子在古代叫什么| 尿素高不能吃什么| 转氨酶高有什么危害| 红海是什么意思| 什么原因导致月经量少| 嫦娥住的宫殿叫什么| 女性肾功能不好有什么症状| brooks是什么品牌| 吃什么降血脂最好| 湿气重挂什么科| 人为什么要生孩子| 肠胃炎吃什么药| 体重什么时候称最准确| 双相情感障碍吃什么药| 学籍有什么用| 什么时期最容易怀孕| 员额制是什么意思| 尿蛋白定量高说明什么| 瑶五行属什么| 黄瓜含有什么营养成分| 肠粉为什么叫肠粉| 肝钙化灶是什么意思| 慢悠悠的近义词是什么| 猫叫什么名字好听| 1985是什么年| 炖肉放什么调料| 无语凝噎是什么意思| 北海特产有什么值得带| 南瓜和窝瓜有什么区别| 小孩掉头发是什么原因| 向日葵为什么会随着太阳转动| 细菌性痢疾症状是什么| 足勺念什么| 蔬菜用什么肥料最好| 百度Jump to content

From Wikipedia, the free encyclopedia
Active Server Pages (ASP)
Developer(s)Microsoft
Stable release
3.0 / February 17, 2000; 25 years ago (2025-08-05)
TypeWeb application framework
LicenseProprietary software
Websitewww.asp.net Edit this on Wikidata
Active Server Pages
Filename extension
.asp
Developed byMicrosoft
百度 应当对此制定相应的政策措施,督促各地加大基金归集并进行投资运营的力度,促进基本养老保险基金投资运营市场化、多元化。

Active Server Pages (ASP) is Microsoft's first server-side scripting language and engine for dynamic web pages.

It was first released in December 1996, before being superseded in January 2002 by ASP.NET.

History

[edit]

Initially released as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack (1996), it is included as a component of Windows Server (since the initial release of Windows 2000 Server). There have been three versions of ASP, each introduced with different versions of IIS:

  • ASP 1.0 was released in December 1996 as part of IIS 3.0
  • ASP 2.0 was released in September 1997 as part of IIS 4.0
  • ASP 3.0 was released in November 2000 as part of IIS 5.0

ASP 2.0 provides six built-in objects: Application, ASPError, Request, Response, Server, and Session. A Session object, for example, represents a session that maintains the state of variables from page to page.[1] The Active Scripting engine's support of the Component Object Model enables ASP websites to access functionality in compiled libraries such as dynamic-link libraries.

ASP 3.0 does not differ greatly from ASP 2.0 but it does offer some additional enhancements such as Server.Transfer method, Server.Execute method, and an enhanced ASPError object. ASP 3.0 also enables buffering by default and optimized the engine for better performance.

ASP was supported until 14 January 2020 on Windows 7.[2] The use of ASP pages will be supported on Windows 8 for a minimum of 10 years from the Windows 8 release date.[2] ASP is supported in all available versions of IIS as of 2025.[3]

Architecture

[edit]

ASP uses scripting on the server to generate content that is sent to the client's web browser via HTTP response. The ASP interpreter reads and executes all script code between <% and %> tags, the result of which is content generation. These scripts were written using VBScript, JScript, or PerlScript. The @Language directive, the <script language="language" runat="server" /> syntax or server configuration can be used to select the language. In the example below, Response.Write Now() is in an HTML page; it would be dynamically replaced by the current time of the server.

Server side Client Side
The server's current time:
<%
Response.Write Now()
%>
The server's current time:
8/11/2015 6:24:45 PM

Web pages with the .asp filename extension use ASP, although some web sites disguise their choice of scripting language for security purposes by using the more common .htm or .html extensions. Pages with the .aspx extension use compiled ASP.NET; however, ASP.NET pages may still include some ASP scripting. The introduction of ASP.NET led to use of the term Classic ASP for the original technology.

Sun Java System ASP (formerly ChiliSoft ASP) was a popular and reportedly complete emulator,[4] but it has been discontinued.

The Server object

[edit]

The server object allows connections to databases (ADO), filesystem, and use of components installed on the server.

<%
Dim oAdoCon, oAdoRec, oAdoStm, oCdoCon, oCdoMsg, oSciDic, oSciFsm, oMswAdr

Set oAdoCon = Server.CreateObject("ADODB.Connection")
Set oAdoRec = Server.CreateObject("ADODB.Recordset")
Set oAdoStm = Server.CreateObject("ADODB.Stream")
Set oCdoCon = Server.CreateObject("CDO.Configuration")
Set oCdoMsg = Server.CreateObject("CDO.Message")
Set oSciDic = Server.CreateObject("Scripting.Dictionary")
Set oSciFsm = Server.CreateObject("Scripting.FileSystemObject")
Set oMswAdr = Server.CreateObject("MSWC.Swingbridge")
%>

The Application object

[edit]

This object stores global variables, which are variables accessible to all users.

<%
Application("Ali") = "My ASP Application"
Response.Write "Welcome to " & Server.HTMLEncode(Application("Ali")) & "!"
%>

The Session object

[edit]

Stores variables accessible only to a single visitor, which are local variables.

<%
If Len(Request.QueryString("name")) > 0 Then
     Session("name") = Request.QueryString("name") 
End If

Response.Write "Welcome " & Server.HTMLEncode(Session("name")) & "!"
%>

The session object is file based and multiple concurrent read and/or write requests will be blocked and processed in turn.

The Err object

[edit]

Allows the management and fixing of non-fatal errors.

<%
On Error Resume Next

Response.Write 1 / 0 ' Division by zero

If Err.Number <> 0 Then
     Response.Write "Error Code: " & Server.HTMLEncode(Err.Number) & "<br />"
     Response.Write "Error Source: " & Server.HTMLEncode(Err.Source) & "<br />"
     Response.Write "Error Description: " & Server.HTMLEncode(Err.Description) & "<br />"
     Err.Clear 
End If 
%>

See also

[edit]

References

[edit]
  1. ^ The session data is kept server-side, the ID is saved as a HTTP Cookie. Source: ASP and Web Session Management, Microsoft
  2. ^ a b "Active Server Pages (ASP) support in Windows". Support (4.0 ed.). Microsoft. 30 January 2012. Retrieved 11 August 2015.
  3. ^ Source: [1], Microsoft
  4. ^ Weissinger, Keyton (6 October 2009). ASP in a Nutshell: A Desktop Quick Reference. O'Reilly Media, Inc. ISBN 978-1-4493-7959-9. Retrieved 9 October 2013.
[edit]
条件兵是什么意思 上腹疼是什么原因 guess什么意思 椰浆和椰汁有什么区别 除皱针什么牌子效果最好
农历4月14日是什么星座 耳朵响是什么原因引起的 什么是间质瘤 韩红什么军衔 黄色有什么黄
米加白念什么 盖是什么意思 对别人竖中指是什么意思 5月13日是什么星座 afi是胎儿的什么意思
子时右眼跳是什么预兆 纳粹是什么意思 35岁属相是什么生肖 头晕眼花吃什么药 山楂炖肉起什么作用
阿尔卑斯是什么意思hcv7jop9ns0r.cn 乙肝两对半25阳性是什么意思hcv7jop6ns3r.cn 脂肪肝浸润是什么意思hcv8jop9ns4r.cn 芙蓉花是什么花hcv8jop7ns4r.cn 什么水果是温性的hcv8jop4ns5r.cn
经常胃胀气是什么原因引起的hcv8jop6ns4r.cn 头孢治什么hcv7jop5ns2r.cn 田螺小子是什么意思hcv9jop5ns4r.cn nc是什么意思zsyouku.com 八方来财是什么意思hanqikai.com
精神内科一般检查什么hcv8jop1ns2r.cn 2005年什么年hcv8jop9ns3r.cn 中午吃什么饭 家常菜hcv9jop4ns0r.cn 泌尿感染是什么原因引起的hcv8jop2ns1r.cn 九月十四号是什么星座hcv7jop6ns1r.cn
rock什么意思hcv9jop5ns6r.cn 眼睛周围长斑是什么原因引起的hcv8jop7ns9r.cn 神戳戳是什么意思travellingsim.com 甲辰年五行属什么hcv7jop6ns6r.cn 今日冲什么生肖zhongyiyatai.com
百度