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、黑客是怎么进入网站服务器的?黑客入侵攻击的目的认为好玩,有趣。比如有些学生。获取对于文件的信息。获取超级用户权限。修改信息。(黑客是怎样侵入一个...
新华社阿克拉11月13日电(记者许正 郭骏)阿布贾消息:尼日利亚警方13日说,该国东北部包奇州12日发生一起翻船事故,造成18人死亡。 警方说,翻船事故发生在包奇州伊塔斯-加道地区。一艘载有...
近日,未播先火的青年励志综艺节目《青春有你3》终于官宣,将于2月17日与网友“抢先过招”,2月18日20:00正式上线,瞬间引发网友关注。与前两季节目相同,《青你3》的节目音源将继续在官方音乐合作平台...
新华社北京9月26日电 近日,中共中央办公厅、国务院办公厅印发了《关于加快推进媒体深度融合发展的意见》,并发出通知,要求各地各部门结合实际认真贯彻落实。 《意见》从重要意义、目标任务、工作原则三个方...
嫦娥五号穿了两层棉衣还贴满了暖宝宝 网友:不能冻到我们的“快递员”! 今日(17日)凌晨1时59分,嫦娥五号返回器携带月球样品,在内蒙古四子王旗预定区域安全着陆。探月工程嫦娥五号任务取得圆满...
私人接单黑客 黑客他们可以得到你的联系方式,但是你却很难找到他们。因为大部分黑客和普通人所掌握的信息能量是不对称的,可以去一些黑客论坛或是贴吧里面找,到那时要注意一点,有可能会有骗子的...