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.刷请神赚钱,这个方法在之前还是很实用的。开个小号招募令做完就差不多20J可以领任务了大号准备一堆火珠和日光之泪15。 很简单如果你是30级以上的,你就去打虎丘林英雄级别,会掉落...
开启ps,导进素材图片,点一下左边菜单栏的选框专用工具,这儿以矩形框选框专用工具为例子,框挑选出必须删掉的一部分,然后点一下左边菜单栏的橡皮擦工具,对不必的一部分开展擦掉就可以。 知名品牌型号规格:想...
现如今的共享自行车实际上早已来到瓶颈,许多 企业都陆续破产倒闭,可是近期哈罗单车却得到 了蚂蚁金融很多的资产引入,我们一起来瞧瞧吧。 昨日夜间永安行发布消息表明,蚂蚁金融控股子公司上海市云鑫...
本文导读目录: 1、介绍几本好的关于黑客的小说 2、黑客类的小说介绍几本,谢了。 3、求百万字以上黑客小说,不要系统流,不要系统流,不要系统流 4、求几本黑客类的小说 5、求几本好看的...