4 I get the error
"Cannot implicityly convert type 'string' to int?'
1 AlternaDB.MarketingDataContext db = new AlternaDB.MarketingDataContext();
2
3 AlternaDB.Distributor tbl = new AlternaDB.Distributor();
4 tbl.AccountType = dpAccountType.SelectedValue;
5
6 tbl.CompanyName = txtCompanyName.Text;
7 db.Distributors.InsertOnSubmit(tbl);
8 db.SubmitChanges();
My Class looks like the following if that matters:
public static class DistAccountType
{
public const byte Distributor = 0;
Go to the complete details ...