FormView显示、更新、插入、删除数据库操作[ASP.NET源代码](一)(6)
来源:未知 责任编辑:责任编辑 发表时间:2015-10-08 14:15 点击:次
<td height="30" width="60">
</td>
<td height="30" width="60">
<asp:Button ID="btnEdit" runat="server" Text="编辑" CommandName="Edit"/></td>
<td height="30" width="60">
<asp:Button ID="btnDelete" runat="server" Text="删除" CommandName="Delete"/></td>
<td height="30" width="60">
<asp:Button ID="btnNew" runat="server" Text="新建" CommandName="New" /></td>
</tr>
</table>
</ItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="sdsItem" runat="server" ConnectionString="<%$ ConnectionStrings:NetShopConnString %>"
SelectCommand="SELECT Item.ItemId AS ItemId,Item.CategoryId AS CategoryId,Item.Name AS Name,Item.Price AS Price,Item.Image AS Image,Category.Name As CategoryName FROM Item INNER JOIN Category ON Item.CategoryId=Category.CategoryId">
</asp:SqlDataSource>
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>