摘要:
[HttpPost] public void SaveFile(FormCollection form) { var c = Request.Files.Count; var f = Request.Files[0]; }@using (Html.BeginForm("SaveFile", "Test", FormMethod.Post, new { id = "form1", enctype = "multipart/form-data" })){ } 阅读全文
摘要:
var sql = @"Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcApplication1-20131029153010;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcApplication1-20131029153010.mdf"; SqlBulkCopy bc = new System.Data.SqlClient.SqlBulkCopy(sql); bc.DestinationTabl... 阅读全文