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
救出绝望的难民(救出绝望的难民任务完成攻略) 魔兽百思特网世界7.1救出绝望的难民任务怎么做,7.1刚上线不久,很多小伙伴对7.1救出绝望的难民任务还不是很了解,下面是6399游戏小编为大家带来详细...
如今许多 学员在业余时间想要做一些做兼职或是赚钱的行业,那样能够 累积工作经历,有一定的社会发展经验,对之后找个工作也是有协助的,那麼学生族做什么挣钱呢?下边强烈推荐好多个非常好的新项目。 学生族...
最先开启Microsoft word,挑选文本文档进入页面,随后点一下顶端的签字笔,然后点一下右边的下拉莱单,选定內容,挑选B标志,能够让字体加粗,若挑选U,则能够让字体样式再加上下横线,最终还可点一...
本文导读目录: 1、黑客题材的电影都有哪些 2、欧美黑客题材的电影有哪些推荐? 3、有好看经典的关于黑客的电影吗, 推荐几部? 4、有那些经典的关于黑客的电影 5、黑客的电影有哪些...
本文导读目录: 1、iphone提示被黑客入侵怎么办? 2、手机被黑客入侵,总有人远程操作我的手机,怎么办? 3、手机遇到黑客怎么办 4、手机被苹果手机被黑客入侵通讯录视频怎么办 5、...
这篇文章主要和大家分享产品经理知识体系中几个元概念的定义,正是这些基本概念支撑了并衍生出了整个产品经理的知识体系。 01 如果把产品经理所需要具备的知识体系称作一门学科, 况且叫做“产品学”,那么用...