关于asp+的几个特点
翻译整理:jjx ( http://www.soho-works.net/ )
原文: www.asptoday.com/articles/20000712.htm
1、缺省语言
在asp+中,将使用visual basic而不是vbscript为缺省语言。这意味着我们可以摆脱vbscript的语言限制,我们的代码将
是编译后运行的(而不是原来的解释执行)。这意味asp+页面具有组件方式的性能。cool
2、服务器端控件
一个客户端控件
<select id="selopsys" size="1" >
<option>windows 95</option>
<option>windows 98</option>
<option>windows nt4</option>
<option>windows 2000</option>
</select>
<select id="selopsys" size="1" runat="server">
<option>windows 95</option>
<option>windows 98</option>
<option>windows nt4</option>
<option>windows 2000</option>
</select>
if len(request.form("selopsys")) > 0 then
stropsys = request.form("selopsys")
strname = request.form("txtname")
response.write("you selected '" & stropsys _
& "' for machine '" & strname & "'.")
end if
if len(selopsys.value) > 0 then
response.write("you selected '" & selopsys.value _
& "' for machine '" & txtname.value & "'.")
end if
<form runat="server">
machine name:
<input type="text" id="txtname" runat="server">
<p />
operating system:
<select id="selopsys" size="1" runat="server">
<option>windows 95</option>
<option>windows 98</option>
<option>windows nt4</option>
<option>windows 2000</option>
</select>
<p />
<input type="submit" value="submit">
</form>
<html>
<body>
you selected 'windows 98' for machine 'tizzy'.
<form name="ctrl0" method="post"
action="pageone.aspx" id="ctrl0">
<input type="hidden" name="__viewstate"
value="a0z1741688109__x">
machine name:
<input type="text" id="txtname"
name="txtname" value="tizzy">
<p />
operating system:
<select id="selopsys" size="1" name="selopsys">
<option value="windows 95">windows 95</option>
<option selected value="windows 98">
windows 98</option>
<option value="windows nt4">windows nt4</option>
<option value="windows 2000">windows 2000</option>
</select>
<p />
<input type="submit" value="submit">
</form>
</body>
</html>
<html>
<body>
<script language="vb" runat="server">
sub showvalues(sender as object, args as eventargs)
divresult.innertext = "you selected '" _
& selopsys.value & "' for machine '" _
& txtname.value & "'."
end sub
</script>
<div id="divresult" runat="server"></div>
<form runat="server">
machine name:
<input type="text" id="txtname" runat="server">
<p />
operating system:
<select id="selopsys" size="1" runat="server">
<option>windows 95</option>
<option>windows 98</option>
<option>windows nt4</option>
<option>windows 2000</option>
</select>
<p />
<input type="submit" value="submit"
runat="server" onserverclick="showvalues">
</form>
</body>
</html>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器