【发布时间】:2015-04-18 04:38:07
【问题描述】:
首先,我在 Model.ChatListUsers 的 foreach 中有这个隐藏的输入
<input type="hidden" class="chatId" value="@chat.ChatId"/>
在页面的下方,我正在渲染一个带有引导模式的局部视图。
@Html.Partial("~/Views/Homevestors/Chat/_FlagChatAbuseModal.cshtml", new BusinessEntities.Chat.Chat_Abuse());
我的困境是我需要将从 Model.ChatListUsers 中为正在迭代的特定用户获取的 chatId 传递到引导模式中,以便我可以将消息标记为滥用。我将如何使用 Chat_Abuse 模型填充该模式,以及我在主页上使用的模型中的 chatId,这完全是一个不同的模型。
【问题讨论】:
标签: c# jquery html model-view-controller