我的一个页面上有"最新商品和特价商品",分别有一个"更多"的链接,怎么在同一个页面上显示呢?意思就是点击"更多"时连接到more.aspx页面,点最新商品的链接时,就显示最新商品的更多商品.点特价商品时,就显示特价商品的更多商品.

解决方案 »

  1.   

    如果是连接到别的页面上,为什么不分开两个页面呢?如果是业务系统,应该在当前页面上展开,与c/s系统操作界面类似。我很烦那些平均半分钟不到就必须打开一个以上页面的web程序,头都昏了。
      

  2.   

    如果只是看一些文章,就像偏重静态的网页那样,那么打开窗口没有什么。如果是mis程序,打开窗口往往是很笨的交互方法,用惯了c/s程序的用户会非常抵触。
      

  3.   

    more.aspx?type=1
    more.aspx?type=2
    more.aspx?type=3
    more.aspx?type=4
    more.aspx?type=5根据不同的值用不同的sql语句
      

  4.   

    是这样的吗?前台
    more.aspx?type=...后台
    Sub moreproduct()
            Dim type As String = Request.QueryString("type")
            Dim strsql As String = "select * from products where typeid='" & type & "'"
            Dim cmd As New SqlCommand(strsql, conn)
            Dim adp As New SqlDataAdapter(cmd)
            Dim ds As New DataSet
            adp.Fill(ds, "products")
            datalist1.DataSource = ds
            datalist1.DataBind()
        End Sub