【问题标题】:I am having Error in ASP.Net Mvc Project While applying crud operations with model class在使用模型类应用 crud 操作时,我在 ASP.Net Mvc 项目中遇到错误
【发布时间】:2020-11-07 15:38:11
【问题描述】:

这是我在图片中的代码 Controller Pic 1

Controller Pic 2

Controller Pic 3

Layout Pic 1

Model Class Pic

database Table data Pic

Database Table Definition Pic

Error Pic

帮我解决这个错误。 如果需要,我可以为您提供解决方案文件夹。

【问题讨论】:

    标签: c# asp.net string model-view-controller error-handling


    【解决方案1】:

    我假设您的数据库中的 tec_cell 无法在您的模型类中转换为 Int32。

    【讨论】:

    • 感谢您的回答。实际原因是输入错误或 dr[]。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-05
    • 2018-12-09
    • 2010-09-15
    • 2019-03-03
    • 1970-01-01
    • 1970-01-01
    • 2022-08-03
    相关资源
    最近更新 更多