怎么不管用呢?
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")
问题点数:0、回复次数:1Top
1 楼myminimouse(坚决不用baidu)回复于 2006-11-02 09:12:46 得分 0
这样写太累了吧,用参数的方式写吧
如果想找原因就一步步调试,看你最后的update对不对,然后把这个update直接在sql里执行,看对不对,问题就知道了Top




