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
家里有小孩子的父母孩子在家呆久了,父母反而是各种嫌弃,调皮捣蛋不讲卫生不学习,让父母很是头疼。孩子终于开学对父母来是解放了。孩子终于开学了的心情说说 孩子开学家长心情搞笑句子。友谊长存带来相关介绍。...
可感知应用程序的网络爬虫(Spider),它能完好的枚举应用程序的内容和功用;BGP是一种网络协议,用于交流因特网上各网络之间的路由信息。 一般情况下,它用来确认在独立运营的网络或自治体系之间路由数据...
找黑客追款黑客大户追款步骤,小心因为资金来路不明被银行冻结我成功加上了大户哥,正在追款中,我相信我可以成功的不要相信什么黑客会帮你追回钱,要是他们真这么厉。黑客大户追款联系方法,需要追回请找我们出黑在...
娱采网讯:知名演员吴孟达2月27日在香港病逝,让香港和内地的很多喜欢他的影迷陷入悲痛之中。他生前留下的最后一条微博写着“我是中国人”,令无数网友肃然起敬。 然而,就是这种最纯...
大型网站 对于大型网站,流量是盈利的基础,因此流量是大型网站的首要重点。大型网站希望通过搜索引擎获得大量流量,并且可以在搜索引擎关键字上花钱,但通常大型网站不使用此方法,因为成本略高,并且他们都使用...
本文目录一览: 1、黑客帝国》在科幻电影史上究竟是什么地位 2、1999年《黑客帝国》席卷全球,你最喜欢里面那个角色? 3、《黑客帝国》三部曲依然经典!你还知道科幻电影的标杆有哪些? 4、...