此种错误非常容易理解,对于没有超载的方法“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个就错了。

相关文章:

  • 2021-12-27
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2021-07-28
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案