The type or namespace name 'ListItem' could not be found (are you missing a using directive or an as

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Can someone give me a quote on why I get the above error on the following piece of code?!
strSQL = "INSERT tblTrademarkApplications VALUES (" +
PrepareStr(OwnerCode.ToString ()) + "," +
PrepareStr(strSocialSecurityNumberTextBox.Text) + "," +
PrepareStr(strFirstNameTextBox.Text) + "," +
PrepareStr(strLastNameTextBox.Text) + "," +
((ListItem)individualPlaceOfBirthCb.Items[individualPlaceOfBirthCb.SelectedIndex]).nId + "," +
PrepareStr(strTelephoneNumberTextBox1.Text) + "," +
PrepareStr(strFaxNumberTextBox1.Text) + "," +
PrepareStr(strJobTextBox.Text) + "," +
PrepareStr(strFaxNumberTextBox1.Text) + "," +
PrepareStr(strEmailAddressTextBox1.Text) + "," +
PrepareStr(strPostalCodeTextBox1.Text) + "," +
PrepareStr(strAddressTextBox.Text) + "," +
PrepareStr(strCityTextBox.Text) + "," +
PrepareStr(strStateTextBox.Text) + "," +
((ListItem)individualCountryCb.Items[individualCountryCb.SelectedIndex]).nId + "," +
<br/>


<br/>


View the full article
 
Back
Top