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
阅读全文
摘要:只需要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"
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:VS2010 VS2010 SP1 (FOR HTML5)SQL EXPRESS CEMVCMUSIC ( ... )IE9 (FOR HTML5)
阅读全文
浙公网安备 33010602011771号