<head runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<link href="../../Content/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Areas/CMS/Content/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/Areas/CMS/Content/js/jquery.jeditable.js"></script>
<script type="text/javascript" src="/Areas/CMS/Content/js/jeditable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".naslov_vijesti").editable('<%=Url.Action("UpdateSettings","Article") %>', {
submit: 'ok',
submitdata: {field: "Title"},
cancel: 'cancel',
cssclass: 'editable',
width: '99%',
placeholder: 'emtpy',
indicator: "<img src='../../Content/img/indicator.gif'/>"
});
});
</script>
</head>
這是的Site.Master文件的頭標記。我想從頭部刪除這個多行部分,並將其放置在現在爲空的jeditable.js文件中。如果我複製/粘貼,那麼<% %>
部分將不會執行。在PHP中,我會將js文件保存爲jeditable.js.php,並且服務器將編譯<?php ?>
標記中的代碼。任何想法如何解決這個問題?
由於提前,
島保存js文件用C#命令
你混合項目WebForms和MVC? – R0MANARMY 2010-03-26 21:47:40
嗯......說實話,我不知道。我從2個月前開始使用ASP.NET MVC,在此之前我從未使用C# – 2010-03-26 21:57:28