facing problem while executing vb.net query

前端 未结 7 1001
情深已故
情深已故 2020-12-12 07:24
Dim con As SqlConnection
        con = New SqlConnection(\"server=chinna; uid=sa; pwd=136018@h; database=icms\")
        con.Open()
        Dim cmd As SqlCommand
            


        
7条回答
  •  离开以前
    2020-12-12 08:09

    Should be

    cmd = New SqlCommand("select pass from personal where idno='" & TextBox1.Text & "'", con)
    

    beyond that code seems for ASP.net. We can not execute MsgBox in VB.net that can appear on client browser.

提交回复
热议问题