0
我想复制我在这里看到 http://jqueryui.com/dialog/#animated具有以下asp.net mvc的观点jQuery的模态弹出在asp.net mvc的
@{
ViewBag.Title = "Partial";
}
<script>
$(function() {
$("#dialog").dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$("#opener").click(function() {
$("#dialog").dialog("open");
});
});
</script>
<div id="dialog" title="Basic dialog">
<p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
<button id="opener">Open Dialog</button>
@section scripts{
@Scripts.Render("~/Scripts/jquery-1.10.2.js")
@Scripts.Render("~/Scripts/jquery-ui-1.8.11.js")
}
的例子,但jQuery是不点火,我不敢肯定,如果我链接了jQuery脚本对什么......
我也对页,但没有顶部试过这种
<script src="@Url.Content("~/Scripts/jquery-1.10.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>
最终我的目标是使用@Ajax.ActionLink(这对我有用),然后使用部分视图更新的“div”进入模式弹出窗口。但现在,我不能让这个模式的工作,我感谢帮助家伙
谢谢你让我试试吧! – 2014-10-10 18:32:11
IT让你疯狂的人你! – 2014-10-10 18:38:00
:)谢谢@AbdulAhmad – Gjohn 2014-10-10 18:39:19