摘要: <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 { 阅读全文
posted @ 2011-08-18 15:47 quietwalk 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2011-08-18 13:52 quietwalk 阅读(215) 评论(0) 推荐(0) 编辑
摘要: <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 阅读全文
posted @ 2011-08-18 13:22 quietwalk 阅读(553) 评论(0) 推荐(0) 编辑
摘要: <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> </ 阅读全文
posted @ 2011-08-18 10:44 quietwalk 阅读(757) 评论(0) 推荐(0) 编辑