- 12月 21 週二 202113:55
必須宣告純量變數
- 11月 15 週一 202110:43
ASP.NET Core MVC 的 Model
- 11月 09 週二 202112:45
ASP.NET Core MVC 的 View
- 11月 07 週日 202116: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,但傳不進去。
解法:
把 _Layout.cshtml 裡面的 @model yourmodel 給拿掉就好了
- 11月 04 週四 202123:58
ASP.NET Core MVC 設定 controller
- 10月 25 週一 202115:33
SQL 將資料類型從 varchar 轉換到 numeric 時發生錯誤。
錯誤內容 : 將資料類型從 varchar 轉換到 numeric 時發生錯誤。
可能發生在:
1.拿錯誤字串轉換的時候,大寫數字、空白、文字,轉換成Decimal 或是 numeric會出現這樣的錯誤。
2.或是 拿varchar 的資料型態 insert decimal 、numeric 的型態的欄位也會出錯。
- 10月 12 週二 202113:39
C# .net core 讀出亂碼
- 10月 01 週五 202110:36
C# Can't use App_Code folder 無法參考 App_Code 底下的檔案C#
- 9月 24 週五 202109:25
C# WebForm ScriptManager RegisterStartupScript not work 沒有效果C#
- 9月 09 週四 202109:58
SQL 顯示執行時間 執行效能
