原创 瀏覽器兼容模式下,上傳文件問題

  在瀏覽器的兼容模式下,頁面沒有上傳圖片的時候,file != null && file.Count > 0 && file[""] != null 是成立的。但file[""].FileName != ""是不成立的 if (file

原创 localhost換成127.0.0.1和本機IP打不開本地項目了的問題

點擊桌面右下角的小三角, iis express右鍵—>顯示所有應用程序—>點擊網站名稱,配置文件路徑,找到配置文件,以記事本打開, 按照configuration--system.applicationHost--sites--site(

原创 mvc @html.action() 跨area調用controller 中的action

@{Html.RenderAction("ActionName", "ControllerName", new { area = "Manager" });}   或 @Html.Action("ActionName", "Contr

原创 eCharts 數據轉換json

  public ActionResult ShowChart() { return View(); } <div id="main" style="width: