gpt4 book ai didi

asp.net-mvc-3 - 如何访问在 Controller 中创建的 View 中的变量?

转载 作者:行者123 更新时间:2023-12-04 22:16:07 26 4
gpt4 key购买 nike

如何访问在 Controller 中创建的 View 中的变量?

最佳答案

您需要将变量发送到 ViewModel 中的 View (View() 方法的参数)或 TempData 字典。

关于asp.net-mvc-3 - 如何访问在 Controller 中创建的 View 中的变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5181241/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com