当前位置: 代码迷 >> ASP.NET >> insert into,这段代码那边出错了
  详细解决方案

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

热度:6678   发布时间:2013-02-26 00:00:00.0
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
  相关解决方案