02 2012 档案

摘要:第一步骤 Model public class Person { [Required(ErrorMessage = "请输入姓名")] public string FirstName { get; set; } [Required(ErrorMessage = "请输入名字")] public string LastName { get; set; } [Range(18, 100, ErrorMessage = "请输入{1}到{2}之间")] public int age { get; set; } [DataType(DataT 阅读全文
posted @ 2012-02-28 00:33 Ry5 阅读(402) 评论(0) 推荐(0)
摘要:只需要1步View 注意红色部分@{var chart = new Chart(width:450,height:300).AddTitle("数据分析").AddTitle(name:"X",xValue:new[]{"2","3","4"}).AddTitle(name:"Y",yValue:new[]{"2","3","4"}).Save("~/Content/Images/tem.png" 阅读全文
posted @ 2012-02-27 12:47 Ry5 阅读(274) 评论(0) 推荐(0)
摘要:Action public ActionResult Index() { return this.RazorView(); }ControllerExtensionspublic static class ControllerExtensions { public static ViewResult RazorView(this Controller controller) { return RazorView(controller, null, null); } public static ViewResult RazorView(this Controller controller, ob 阅读全文
posted @ 2012-02-25 19:39 Ry5 阅读(365) 评论(0) 推荐(0)
摘要:Model public class SpreadsheetModel { public String fileName { get; set; } public String[,] contents { get; set; } }ACTION public ActionResult Excel() { SpreadsheetModel mySpreadsheet = new SpreadsheetModel(); mySpreadsheet.contents = new String[2, 2] { {"Cell11","Cell12"}, {&quo 阅读全文
posted @ 2012-02-25 19:08 Ry5 阅读(349) 评论(0) 推荐(0)
摘要:1 下载别人的项目 提取数据库名称Test2 建Console程序 创建Test数据库 private void testc() { string link = @"Data Source=AA-158B22BD91A6\SQLEXPRESS;Initial Catalog=master;Integrated Security=True"; SqlConnection Conn = new SqlConnection(link); Conn.Open(); string commandText = @"Create database Test"; Sql 阅读全文
posted @ 2012-02-05 00:58 Ry5 阅读(293) 评论(0) 推荐(0)
摘要:VS2010 VS2010 SP1 (FOR HTML5)SQL EXPRESS CEMVCMUSIC ( ... )IE9 (FOR HTML5) 阅读全文
posted @ 2012-02-03 12:01 Ry5 阅读(194) 评论(1) 推荐(0)