摘要:
<div class="editor-label">Image</div> <div class="editor-field"> @if (Model.ImageData == null) { @:None } else { <img width="150" height="150" src="@Url.Action("GetImage=""", "Product=""", new { 阅读全文
摘要:
public class Product { [HiddenInput(DisplayValue = false)]//using System.Web.Mvc public int ProductID { get; set; } [Required(ErrorMessage = "Please enter a product name")] public string Name { get; set; } [Required(ErrorMessage = "Please enter a description")] [DataType(DataType 阅读全文
摘要:
<html> <head> <title>@ViewBag.Title</title> <link href="@Url.Content("~=""/Content/Admin.css")" rel="stylesheet" type="text/css" /> </head> <body> <div> @RenderBody() </div> </body> </htm 阅读全文
摘要:
<table width="90%" align="center"> <thead> <tr> <th align="center">Quantity</th> <th align="left">Item</th> <th align="right">Price</th> <th align="right">Subtotal</th> </ 阅读全文