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、黑客聊天室 2、黑客能不能做到哪怕你在任何网站看视频,他都可以利用弹幕和你聊天? 3、黑客和电脑的聊天记录 4、黑客可以通过聊天盗号么? 5、黑客方式匿名聊天如何禁...
简介 最近,我有机会研究一家知名安全公司(F-Secure)发现的 Guardtec KeyWe 智能锁漏洞。F-Secure 人员发现,由于设计缺陷,攻击者可以拦截和解密来自锁的合...
怎么查对方的手机位置?免费查找对方手机位置的方法有哪些?接下来就给你提供最全的解答,最近小陈想知道怎么知道对方手机位置,结果最后没成功,还损失了一千多,我们来看看怎么回事吧。 怎么查对...
黑客是什么? 黑客(Hacker)是指对设计、编程和计算机科学方面具高度理解的人。也可以指: “黑客”一词最早是用来称呼研究如何盗用电话系统的人,这一类人士也被称作“飞客”(Phreaker)。黑客是...
手机如何当黑客找别人相关问题 拉斯维加斯黑客大会冠军相关问题 黑客网络被黑怎么办 有黑客的网站(模拟黑客的网站)...
芭拉是什么水果(终于知道香蕉你个巴拉是啥意思了)许多人都爱吃水果,出格是炎炎夏日高温令人昏沉,加之身体大量出汗、容易呈现脱水现象,尤其需要摄取富裕的维生素及水分,方能缓解疲惫感,而吃水果正是简朴而又康...