⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oldasp.asp

📁 东软内部材料(四)asp等相关的教学案例 
💻 ASP
字号:
<!-- #INCLUDE FILE="./ConnectionStrings.asp" -->
<html>

<form action="OldAsp.asp" method="post">

   Please select your delivery method:
   <select id="ShipMethod" Name="ShipMethod" size="1">
<%
   Dim rsShip
   Dim SQL
   Dim ItemField

  Set rsShip = Server.CreateObject("ADODB.Recordset")

   SQL = "SELECT * FROM Shippers"

   rsShip.Open SQL, ConnectionString

   While Not rsShip.EOF
   Response.Write "<option value='" & _
         rsShip("ShipperID") & "'>" & _
         rsShip("CompanyName") & "</option>" & vbCrLf
   rsShip.MoveNext
   Wend

   rsShip.Close
   Set rsShip = Nothing
%>
   </select>
   <br>
   <input type="submit" value="Place Order">
</form>

<%
   If Len(Request.Form("ShipMethod")) > 0 Then
   Response.write "<br>Your order will be delivered via " & _
         Request.Form("ShipMethod")
   End If
%>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -