如何使用Bootstrap模式在弹出窗口中渲染局部视图 [英] How Do I Render Partial View In Popup Using Bootstrap Modal

查看:80
本文介绍了如何使用Bootstrap模式在弹出窗口中渲染局部视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有查看链接按钮的文档列表





id =viewrole =linkdata-toggle =modaldata-target =#myModal>查看




模态是

I have Document list with view link button


id="view" role="link" data-toggle="modal" data-target="#myModal">View


modal is














和局部视图看起来像



@model MVC5Application.Models.Property



< img src =@ViewBag.Document alt =/>



点击链接后,它必须在我的应用程序的上传文件夹中显示具有文档ID(我已点击)的相应图像。



i我是mvc的新手可以帮助我。



and the partial view looks like

@model MVC5Application.Models.Property

<img src=@ViewBag.Document alt=""/>

after click on link it has to display respective image which has the document id(which i have clicked) it in the folder of uploads in my application.

i am new to mvc can any one help me for the same.

推荐答案

这篇关于如何使用Bootstrap模式在弹出窗口中渲染局部视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆