MVC 3 razor ile kod yazarken şu hatayı aldım:
System.ArgumentNullException: Value cannot be null.Parameter name: items
Bu hata View sayfasında ViewData veya ViewBag içinde liste nesnesi taşınıp, View sayfasında bir DropDownList kontrolünde kullanılıyor olsun. Post işlemi sonucunda tekrar aynı View gösterilirken bu liste tekrar doldurulmalıdır.
Kaynak:
http://stackoverflow.com/questions/5207355/dropdownlist-items-null-when-posting-to-edit-form
http://stackoverflow.com/questions/3395527/error-in-asp-net-mvc-selectlist-value-cannot-be-null-parameter-name-items
C#, .NET, .Net Core
ASP.NET MVC, ASP.NET Web Forms, ASP.NET Core
HTML 5, CSS 3, Javascript, jQuery, Bootstrap
Entity Framework, NHibernate, Dapper
Sql Server, MySql, Oracle
Windows Server, Ubuntu, Debian, Pardus
Xamarin Forms, Android Studio
--- The future of the open web platform is looking very bright!
--- .NET is a free, cross-platform, open source developer platform for building any app.
Google Analytics İzleme
Kaydol:
Kayıt Yorumları (Atom)
1 yorum:
Hocam çok teşekkür ederim.
Yorum Gönder