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、什么是黑客,它有些什么特点。 网络陷阱主要表现形式有 一、网上病毒现在互联网上的病毒如...
永兴县生产的白银产品。通讯员供图 中新网永兴1月9日电 (通讯员 曾翔)境内并无银矿、却以“中国银都”驰名海内外的湖南永兴县,依靠300多年回收冶炼金银的传统技艺,让白银产业持久传承。近年来,永...
天气渐渐回暖,炎热的夏季即将来临,朋友圈里开始疯传起各种金蝉预定的“广告”,还有有一些声音充斥着我们的耳膜,“金蝉能吃吗?”到底金蝉能不能吃?今天小编来帮您解答。 金蝉又名“知了猴”,在苏北一带尤为...
实在是不吐不快,DNF公会的这个bug我不知道出现了多久,但是我本人却深受其害!2年多前我创建了一个属于我自己的公会,名字叫做“长剑当歌”,为了这个公会努力了很久,其中艰辛不想在表。公会基本上全是死人...
本文目录一览: 1、懂编程的高手......请进!菜鸟也可以进但不要瞎说...拜托! 2、《当纯情菜鸟碰到美女黑客》最新txt全集下载 3、vs对战平台和掌门人对战平台 水平哪个 高? 4...