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

📄 addtocart.aspx

📁 asp入门到精通的源代码
💻 ASPX
字号:
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>

<script runat="server">
   private objConn As New OleDbConnection("Provider=" & _
            "Microsoft.Jet.OLEDB.4.0;" & _
            "Data Source=C:\ASPNET\data\banana.mdb")
   
   Sub Page_Load(obj As Object, e As EventArgs) 
      If not Request.Params("PartID") is Nothing Then
         Dim intUserID as integer = Session("UserID")
         Dim intRecords as integer
         Dim objReader as OleDbDataReader
         Dim objBM As New BananaMobile.BananaMobile
         
         ' Add Product Item to Cart
         objBM.AddPart(intUserID, CInt(Request.Params("PartID")), Request.Params("cat").ToString)
      End If  
      Response.Redirect("MyMobile.aspx")
   End Sub
</script>

⌨️ 快捷键说明

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