我想用$.post()
方法从 ASP.Net MVC 页面路由到 ASPX 页面。可能吗?
<script type="text/javascript">
$("document").ready(function () {
$("#deneme").bind("click", function () {
$.post("@Url.Content("~/Home/Rapor/")", function (data) {
});
});
});
</script>
全球.asax
routes.MapPageRoute(
"Rapor",
"Home/Rapor", //{gelen}/{id}",
"~/Views/Home/WebForm1.aspx",
true, null,
new RouteValueDictionary { { "outgoing", new MyCustomConstaint() } }
);