All pastes #809777 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-09 06:45 UTC
rendered paste body
The field 'Books.ASIN' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.Inserted!

INSERT INTO Books(ASIN, Title) VALUES (?, ?)

            AccessDataSource1.InsertCommandType = SqlDataSourceCommandType.Text;
            AccessDataSource1.InsertParameters.Add("Books.ASIN", TypeCode.String, book.ASIN);
            AccessDataSource1.InsertParameters.Add("Books.Title", TypeCode.String, book.BookTitle);
            AccessDataSource1.Insert();