怎么不管用呢?
zm221 2006-11-01 07:42:13 Dim update As String
update = "update links set"
update &= "[name]='" & title.Text & "',"
update &= "[link]='" & Textbox2.Text & "',"
update &= "[imglink]='" & link2.Value & "'"
update &= "where id='" & Request("noo") & "'"
Dim dbconn As SqlConnection
Dim dbcommand As SqlCommand
dbconn = New SqlConnection(ConfigurationSettings.AppSettings("Connectionstring").ToString().Trim())
dbcommand = New SqlCommand(update, dbconn)
dbcommand.Connection.Open()
dbcommand.ExecuteNonQuery()
Server.Transfer("link.aspx")