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