此种错误非常容易理解,对于没有超载的方法“CreateProduct”有9个冲突。如
|
Line 65: {
Line 66: string categoryId = Request.QueryString["CategoryID"];
Line 67: bool success = CatalogAccess.CreateProduct(categoryId,newName.Text,
newDescription.Text,newPrice.Text,newPrice.Text,newImage1FileName.Text,
newImage2FileName.Text,newOnDepartmentPromotion.Checked.ToString(),
newOnCatalogPromotion.Checked.ToString());
Line 68: statusLabel.Text = success ? "Insert successful" : "Insert failed";
Line 69: BindGrid();
|
很明显,我这里多了个newPrice.text,因为我在CatalogAccesss中的CeateProduct方法中只定义了8个参数,而这里有9个就错了。