Converting to ASP+
The conversion process from ASP to ASP+ will depend on the complexity of your existing pages. Databases,
hence ADO, is a great example. ADO is now ADO+ and much different. Therefore if you want your database
pages to be ADO+ ASP+ pages, the learning curve is a little steeper. Your old code will work in most cases
with minimal adjustments (mainly structure).
Structure
The way you write your classic ASP pages will determine the level of technicality in converting your
classic ASP pages to ASP+. VBscript is a subset of VB but not the same as VB therefore minor changes,
mainly formatting, will be required. Structure will be the biggest issue. Get used to the Object Oriented
World. And get used to seeing cleaner code. VB and HTML coding must be separated where as with VBscript
you could intertwine it with HTML.
Mix and match HTML/VBscript
If you do this a lot inside your Functions and Subs,
<%
URL = request.servervariables("URL")
%>
<FONT FACE="arial" SIZE="2">
The URL was <%=URL%>
Then you have work to do. ASP+/VB does not allow ASP code to be mixed with HTML freely inside of functions
and Subroutines. They must be separated. In order for this to run in ASP+, all lines must be converted to
VB response.write statements. Not VBscript response.write statements. Notice the parenthesis. This will be
the most cumbersome part of converting ASP pages to ASP+ pages.
This would be the proper way with ASP+/VB
URL = request.servervariables("URL")
response.write ("<FONT FACE=""arial"" SIZE=""2"">)
response.write ("The URL was "& URL & "</FONT>")
Function Calls
With VBscript/ASP you write your functions like this
<%
Function doIt()
response.write ("Yes")
End Function
Function doIt2()
response.write ("Yes")
End Function%>
The following way is how you will need to write your functions in ASP+/VB. The most important thing here
is the <script> tags.
<script LANGUAGE="VB" RUNAT="server">
Function doIt()
response.write ("Yes")
End Function
恢复某个好友聊天记录(怎样恢复某个人的聊天记录)微信几乎占据了我们的生活,平时不管是社交还是娱乐、支付等都是通过微信完成的,但是我们平时用微信和好友进行沟通的时候,有时候由于自己的失误操作,或者是聊天...
一、黑客之间怎么联系(黑客之间怎么较量) 1、黑客是如何较量技术高低的黑客没你相互的就是对对方的社交软件账号密码的窃取,博客的攻击等等 。然后就是依照技术水平的比较,以及自己所黑掉的网站,窃取的账号...
地球仪上,纬线是指示哪个方向?蚂蚁庄园8月13日今日课堂答案是什么?今天的问题是小鸡宝宝考考你,地球仪上,纬线是指示哪个方向?下面小编就告诉你答案。 蚂蚁庄园今日课堂答题: 问:小鸡宝宝考考你...
带孩子真是件痛苦的事,抱孩子真是个练臂力的好差事,抱孩子五分钟比推杠铃十组还累,抱孩子抱的胳膊好酸爽,一放床上就醒,现在成了扔铅球种子选手。抱孩子很累的说说心情,抱孩子胳膊好酸好累的心情感慨。 抱孩...
作为中国智能锁行业的旌旗品牌,卡迪龙智能锁素来以机能卓越和高安详尺度著称。数十年年专注智能指纹锁研究,卡迪龙不绝革新技能的科研攻关,刷新行业尺度。接下来就跟着小编的文字详细的来瞧瞧这个卡迪龙智能锁...
中新网曼谷12月9日电 (记者 王国安)中国驻泰国大使馆临时代办杨欣和泰国高等教育与科研创新部次长诗立叻8日在曼谷签署澜湄合作专项基金2020年度合作协议。根据协议,中方将资助泰国高校和科研机构实...