0
방금 ASP.NET MVC 3 양식 this을 배우기 시작했으며 이에 대한 예제가 있습니다.ASP.net MVC 3 오류 : CS0103
@Html.DropDownListFor(p => p.WillAttend, new[]
{
new SelectListItem(), Text = "Yes I'll be there", Value = bool.TrueString,
new SelectListItem(), Text = "No, I can't come", Value = bool.FalseString
}, "Chose option")
누구든지이 문제를 해결하는 방법을 알고 : 코드는
난 항상이 오류 여기
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Text' does not exist in the current context
수있다?
@Html.DropDownListFor(p => p.WillAttend, new[]
{
new SelectListItem(){ Text = "Yes I'll be there", Value = bool.TrueString},
new SelectListItem(){ Text = "No, I can't come", Value = bool.FalseString}
}, "Chose option")
나는 그런 사소한 실수를 믿을 수 없어, THX : – Daniel