日期:2014-05-19  浏览次数:20374 次

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   +   " ') "

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




------解决方案--------------------
SelectionList1.SelectedText 或者 SelectionList1.SecectedValue