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
北京海淀区商务接待守候小学妹服务生全国各地高端小学妹陪游【闻静雯】,上海市是一座成功者的集中地,对商业服务女学妹的要求也是较为大的,今日大牌明星商务共享女学妹访梦,年纪长沙市 女 28,婚姻生活:单身...
本文目录一览: 1、求答案!!急急急!什么是黑客?黑客攻击一般采用的过程是什么?试论述如何预防和保护免受黑客的攻击与破坏 2、黑客攻击主要有哪些手段? 3、黑客、灰客、白客、红、蓝客的区别?红...
“伴游网联系电话表-【郑佳】” 申请注册時间:2019-5-19西安女模预定微信聊天群,呢称:西安女模预定微信聊天群ID:3379个子:194CM招骋额度:5000米商务伴游价钱 商务伴游强烈推荐加Q...
毕业证书是啥(文凭毕业证书和学位证书的差别) 最开始熟记这一点:专科大学毕业生授于的是专科学历,是没有学士学位的,要想得到学士学位就务必要再升读大学本科,从而得到学土学士学位。学历证书也别称毕...
最近几天大伙儿会注意到全国各地几个地区有零星好多个新冠当地病案,因而很多人都很好奇在十一月肺炎疫情哪儿最比较严重,在以前大伙儿听见的十一月肺炎疫情又来一波是真是假,这一肺炎疫情是不是和上年一样会再度袭...
中新网客户端北京8月4日电(记者 李金磊)2020年养老金上涨已经结束,截至目前,全国31省份均已上调2020年养老金。你到手的养老金涨了多少钱? 31省份养老金调整方案确定 今年4月份,人社部、...