首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2011-12-21 
insert into,这段代码那里出错了?commandINSERTINTOAccountUser(Name,Gender,Nationality,DOB,Address,P

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

热点排行