sqlinsert的问题
lif 2002-12-19 11:07:26 以下是我的插入语句:
SqlDataAdapter1.InsertCommand.Parameters("@name").Value = txtfile.ToString
SqlDataAdapter1.InsertCommand.Parameters("@outdate").Value = txtpath.ToString
SqlConnection1.Open()
SqlDataAdapter1.InsertCommand.ExecuteNonQuery()
SqlConnection1.Close()
txtfile,txtpathshi是textbox
输入的数据是asdasd和56555
执行后数据库中插入的数据变成:
System.Windows.Forms.TextBox, Text: asdasd
System.Windows.Forms.TextBox, Text: 56555
为什么前面会加入System.Windows.Forms.TextBox, Text:?