【发布时间】:2020-04-23 03:41:15
【问题描述】:
我正在尝试在 asp.net mvc core 3.0 中从服务器端打开引导模式,但无法打开出现错误
ViewBag.RegisterStartupScript(this, this.GetType(), "$('#modalRegisterForm').modal('show')", true);
【问题讨论】:
-
ViewBag 不包含此类方法,因此您可能会看到运行时错误而不是构建时错误。
-
但是如何从服务器端 mvc C# 调用客户端脚本?
标签: asp.net-core-mvc asp.net-core-2.0 asp.net-core-2.2 asp.net-core-3.0