tushu/tushu.aspx.vb

(完整代码) 973B


Partial Class tushu_tushu
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            binddata()
        End If
    End Sub

    Public Sub binddata()
        '
        Dim ts = Me.txtts.Text
        Dim lb = Me.txtlb.Text
        Dim js = Me.txtjs.Text

        Dim sql As String
        sql = "select * from tushu where 1=1"
        If ts <> "" Then
            sql = sql + " and ts like '%" + ts + "%'"
        End If
        If lb <> "" Then
            sql = sql + " and lb like '%" + lb + "%'"
        End If
        If js <> "" Then
            sql = sql + " and js like '%" + js + "%'"
        End If
        Me.SqlDataSource1.SelectCommand = sql

    End Sub

  
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        binddata()
    End Sub
End Class

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。