我有点击它具有以下被称为按钮js函数aspx页面使用渲染的.ascx页面到.aspx页面中的javascript,jquery的
<input type="button" onclick="calltemp1()" value="Temp1"/>
<script type="text/javascript">
function calltemp1() {
$("#Renderthisdiv").load("/Views/Templates/_Temp1.ascx");
}
</script>
我_Temp1.ascx页面呈现另一个页面Temp1.ascx my _Temp1.ascx包含
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div>
<%Html.RenderPartial("/Views/Templates/Temp1.ascx"); %>
</div>
当我运行程序我得到的JavaScript运行错误说“预期目标” 请帮我解决这个问题