读书人

insert into,这段代码那边出错了

发布时间: 2011-12-21 23:56:01 作者: rapoo

insert into,这段代码那里出错了?
command = "INSERT INTO AccountUser (Name, Gender, Nationality, DOB, Address, PIN, AccountType) VALUES ( ' " + TextBox1.Text + " ', ' " + SelectionList1.Selection + " ', ' " + Label1.Text + " ', ' " + TextBox3.Text + " ', ' " + TextBox5.Text + " ', ' " + SelectionList2.Selection + " ') "

老是提示错误?
Error1Operator '+ ' is not defined for types 'String ' and 'System.Web.UI.MobileControls.MobileListItem '.




[解决办法]
SelectionList1.SelectedText 或者 SelectionList1.SecectedValue

读书人网 >asp.net

热点推荐