|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
无法实现跨操作系统的应用。当然这也是微软的理由之一,只有这样才能发挥ASP最佳的能力。可是我却认为正是Windows限制了ASP,ASP的概念本就是为一个能让系统运行于一个大的多样化环境而设计的;FILE:DYNAFORM.ASP
<%@language=vbscript%>
<%Response.Expires=0%>
<HTML>
<HEAD>
<TITLE>DynamicallyGrowingForm</TITLE>
</HEAD>
<BODY>
<%
IfRequest("Action")="SubmittheList"Then
Showwhatwasentered.
Response.Write"<B>HerearetheItemssubmitted:</B><BR>"
nItems=Request.Form("Items").Count
ForI=1TonItems
ShowsubmittedItems
Response.WriteRequest.Form("Items")(I)&"<BR>"
Next
Response.WriteRequest("Item")&"<BR>"
Else
Createtheformfromallitems.%>
<FORMAction=dynaform.aspMethod=Post>
<B>Items:</B><BR>
<%
nItems=Request.Form("Items").Count
ForI=1TonItems
ShowpreviouslysubmittedItems
Response.Write"<INPUTType=TextName=ItemsValue="""&_
Trim(Request.Form("Items")(I))&"""><BR>"
Next
IfRequest.Form("Item")""Then
paintanewinputbox,andstoretheoldIteminItemscollection
Response.Write"<INPUTType=TextName=ItemsValue="""&_
Trim(Request.Form("Item"))&"""><BR>"
Response.Write"<P>PleaseenteranItem,<BR>"
Response.Write"andsubmitthemoneatatime<BR>"
Response.Write"bypressingtheAddItembutton.<BR>"
Response.Write"<INPUTType=TextSize=50Name=ItemValue="""""">"
Else
NoItemwassubmitted,dontshowanerror
Response.Write"<P>PleaseenteranItem,<BR>"
Response.Write"andsubmitthemoneatatime<BR>"
Response.Write"bypressingtheAddItembutton.<BR>"
Response.Write"<INPUTType=TextSize=40Name=ItemValue="""""">
<BR>"
EndIf
%>
<P>
<INPUTType="Submit"Name="Action"Value="AddItemtoList">
<INPUTType="Submit"Name="Action"Value="SubmittheList">
<BR>
<%EndIf%>
</FORM>
</BODY>
</HTML>
楼上说交互性不好,太牵强了吧。在微软提供的一套框架中,利用asp做网站,开发效率高,使用人数少,减少不必要的开销。交互性是互动方式,是有开发人员决定的。 |
|