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、赚钱软件真实可靠百家号只要你会打字,有基本的小学生 写作能力,就可以轻松上手去操作。宅富社网上很多平台都会有人在上面发布任务。知乎知乎的流量到底有多大?知乎的权重一度是1...
虚拟示波器(电脑虚拟示波器) 照旧USB虚拟示波器强,因为中国彩摘网USB虚拟示波器的硬件指标是可以做哎爱进程变的 ,采样速率,存储深度,判别率4c营销理论 ,而声卡虚拟示波器的硬件是做死的heb...
社会的在这不断地发展中,物品的更新换代的速度越来越快,大家开始了对任何事物都会快速地感兴趣最后又快速地没兴趣,而市场的存在就是为了满足消费者们的需求,现在消费者的爱好越来越广,并且喜新厌旧的速度越来越...
13555555555归属于我国挪动全部,号码归属大庆市,定价不少于25000零元。号特点:末尾数AAAAA 号喻意:头脑清醒,避免 自我膨胀。有关十连号号:13333333333、188888888...
据微信公号“中国水利”7月18日消息,7月14日以来,淮河上中游出现持续性降雨,受其影响,淮河王家坝水文站2020年7月17日22时48分水位涨至27.50米,与警戒水位持平,依据水利部《全国主要江河...