摘要: 1.创建模型GuestbookEntrypublic class GuestbookEntry { public int Id { get; set; } public string Name { get; set; } public string Comment { get; set; } pub... 阅读全文
posted @ 2016-01-05 10:27 butterfly小d 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 新建一个文件夹upload创建一个类Modelpublic class Student { public int Id { get; set; } [Display(Name = "姓名")] public string Name { get; set; } public string SClass... 阅读全文
posted @ 2016-01-05 10:19 butterfly小d 阅读(132) 评论(0) 推荐(0) 编辑
摘要: @if (Request.IsAuthenticated){你好,@Html.ActionLink(User.Identity.Name, "Manage", "Admin", routeValues: null, htmlAttributes: new { @class = "username",... 阅读全文
posted @ 2016-01-05 10:16 butterfly小d 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 选择Internet模板1.创建登录模型类Loginpublic class Login { public int id { get; set; } public string name { get; set; } public string password { get; set; } publi... 阅读全文
posted @ 2016-01-05 10:08 butterfly小d 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 选择基本模版1.创建模型类Bookpublic class Book { public int id { get; set; } public string BookName { get; set; } public string Writer { get; set; } public decima... 阅读全文
posted @ 2016-01-05 09:58 butterfly小d 阅读(255) 评论(0) 推荐(0) 编辑