Ajax beginform()不起作用

Ajax beginform()不起作用,ajax,asp.net-mvc,c#-4.0,model-view-controller,partial-views,Ajax,Asp.net Mvc,C# 4.0,Model View Controller,Partial Views,我正在尝试使用ajax表单begin加载特定div中的部分视图,但它在同一时间不起作用。请帮助我,同时单击“提交”按钮,我需要将我的部分视图加载到div中 母版页: <body> <form id="form1" runat="server" enctype="multipart/form-data" > <div> <div> <asp:ContentPlaceHolder ID="ContentPlaceHolde

我正在尝试使用ajax表单begin加载特定div中的部分视图,但它在同一时间不起作用。请帮助我,同时单击“提交”按钮,我需要将我的部分视图加载到div中

母版页:

   <body>
<form id="form1" runat="server" enctype="multipart/form-data" >    
<div>
 <div>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">PageName</asp:ContentPlaceHolder> 
    <div id="content">
       <div id="sidebar">

        <asp:Menu ID="menuBar" StaticEnableDefaultPopOutImage="False" runat="server"
                BackColor="Black" DynamicHorizontalOffset="2" Font-Names="Arial" Font-Size="0.8em"
                ForeColor="White" StaticSubMenuIndent="10px">
                <DynamicHoverStyle BackColor="White" ForeColor="Black" BorderColor="Black" BorderStyle="Solid"
                    BorderWidth="1px" />
                <DynamicMenuItemStyle HorizontalPadding="10px" VerticalPadding="7px" BorderColor="White"
                    BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial" Font-Size="12px" />                                        
                                    <StaticSelectedStyle BackColor="White" BorderColor="Black" BorderStyle="Solid"
                    BorderWidth="1px" ForeColor="Black" />                    
            </asp:Menu>               
       </div>            
      <div id="main">
          <asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder> 
       </div>
      </div>         
</form>

页码
查看页面:

 <%  using (Ajax.BeginForm("GetTruckExpensesChild", new { id="EX1001" }, new AjaxOptions { HttpMethod = "Post", InsertionMode = InsertionMode.Replace, UpdateTargetId = "List" }))
       {%>
    <%: Html.ValidationSummary(true)%>
    <div> <input type="submit" name="dina" value="show list" </div>
    <div id="List">  </div>


确保您应该有以下捆绑添加

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-{version}.js"));

bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.unobtrusive*"));
在HTML中,确保调用了这两个包

@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
有关详细信息,请查看此链接-


没有where is bundle,可能是它的java脚本,请使用Html.BeginForm进行尝试。有关详细信息,请检查此项-也请检查您已包括-