webform bug

This commit is contained in:
2021-11-05 17:20:18 +08:00
parent 7777119e97
commit d377a872c1
3 changed files with 14 additions and 13 deletions

Binary file not shown.

View File

@@ -4,19 +4,6 @@
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script src="Scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>Products</h2>
<table>
<thead>
<tr><th>Name</th><th>Price</th></tr>
</thead>
<tbody id="products">
</tbody>
</table>
<script type="text/javascript">
function getProducts() {
$.getJSON("api/products",
@@ -36,3 +23,16 @@
$(document).ready(getProducts);
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>Products</h2>
<table>
<thead>
<tr><th>Name</th><th>Price</th></tr>
</thead>
<tbody id="products">
</tbody>
</table>
</asp:Content>

View File

@@ -10,6 +10,7 @@
<title><%: Page.Title %> - 我的 ASP.NET 應用程式</title>
<asp:ContentPlaceHolder runat="server" ID="HeadContent"></asp:ContentPlaceHolder>
<asp:PlaceHolder runat="server" >
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>