一个关于VB.NET的问题
由于小弟最近才初学ASP.NET,但却遇到下面代码难题,不知道为什么整天显示什么“此命令要求异步连接。请在连接字符串中设置“AsynchronousProcessing=...
由于小弟最近才初学ASP.NET,但却遇到下面代码难题,不知道为什么整天显示什么“此命令要求异步连接。请在连接字符串中设置“Asynchronous Processing=true”。 ”
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim objConnection As SqlConnection
Dim objCommand As SqlCommand
objConnection = New SqlConnection("Server = (local);uid=sa;pwd=;database=db;")
objConnection.Open()
objCommand = New SqlCommand("insert into user (username,userpwd) values ('" + TextBox1.Text + "','" + TextBox2.Text + "')", objConnection)
objCommand.BeginExecuteNonQuery()
End Sub
请教各位高手。 展开
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim objConnection As SqlConnection
Dim objCommand As SqlCommand
objConnection = New SqlConnection("Server = (local);uid=sa;pwd=;database=db;")
objConnection.Open()
objCommand = New SqlCommand("insert into user (username,userpwd) values ('" + TextBox1.Text + "','" + TextBox2.Text + "')", objConnection)
objCommand.BeginExecuteNonQuery()
End Sub
请教各位高手。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询