- Dec 21 Tue 2021 13:55
-
必須宣告純量變數
- Nov 15 Mon 2021 10:43
-
ASP.NET Core MVC 的 Model
- Nov 09 Tue 2021 12:45
-
ASP.NET Core MVC 的 View

主題:MVC 的 View
情境:
前一章簡單說明了,怎麼把專案設定成MVC的架構,而今天要實做出一controller 以及 view。
複習一下View 就是呈現給使用看的畫面,會是.cshtml的附檔名,這個檔案裡面可以寫C# + html。
重點:
- Nov 07 Sun 2021 16:43
-
but this ViewDataDictionary instance requires a model item of type XX
錯誤內容:The model item passed into the ViewDataDictionary is of Type XXX but this ViewDataDictionary instance requires a model item of Type XXX
發生原因:
1.在Laoyout.cshtml 裡面想要傳入@model,但傳不進去。
- Nov 04 Thu 2021 23:58
-
ASP.NET Core MVC 設定 controller

主題:設定Controller服務、endpoints
情境:
asp.net core 專案,從空白專案開始建起甚麼都沒有,直接執行起來後會是系統預設畫面不會是 MVC的架構。
所以第一步就是設定成mvc的架構。
重點:
- Oct 25 Mon 2021 15:33
-
SQL 將資料類型從 varchar 轉換到 numeric 時發生錯誤。
錯誤內容 : 將資料類型從 varchar 轉換到 numeric 時發生錯誤。
可能發生在:
1.拿錯誤字串轉換的時候,大寫數字、空白、文字,轉換成Decimal 或是 numeric會出現這樣的錯誤。
2.或是 拿varchar 的資料型態 insert decimal 、numeric 的型態的欄位也會出錯。
解法: 檢查是否事以上兩種狀態。
- Oct 12 Tue 2021 13:39
-
C# .net core 讀出亂碼
- Oct 01 Fri 2021 10:36
-
C# Can't use App_Code folder 無法參考 App_Code 底下的檔案C#
- Sep 24 Fri 2021 09:25
-
C# WebForm ScriptManager RegisterStartupScript not work 沒有效果C#
- Sep 09 Thu 2021 09:58
-
SQL 顯示執行時間 執行效能
- Sep 02 Thu 2021 09:32
-
C# 取得當前目錄 AppDomain CurrentDomain BaseDirectory
- Aug 31 Tue 2021 14:47
-
C# DateTime與變數設計

