Click here to Skip to main content
15,898,936 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: model vs Model Pin
Member 1206160020-Sep-15 2:57
Member 1206160020-Sep-15 2:57 
AnswerRe: model vs Model Pin
Kornfeld Eliyahu Peter20-Sep-15 3:11
professionalKornfeld Eliyahu Peter20-Sep-15 3:11 
GeneralRe: model vs Model Pin
Member 1206160020-Sep-15 3:41
Member 1206160020-Sep-15 3:41 
AnswerRe: model vs Model Pin
F-ES Sitecore20-Sep-15 1:12
professionalF-ES Sitecore20-Sep-15 1:12 
GeneralRe: model vs Model Pin
Member 1206160020-Sep-15 1:38
Member 1206160020-Sep-15 1:38 
GeneralRe: model vs Model Pin
Richard Deeming21-Sep-15 2:24
mveRichard Deeming21-Sep-15 2:24 
GeneralRe: model vs Model Pin
Member 1206160021-Sep-15 2:50
Member 1206160021-Sep-15 2:50 
GeneralRe: model vs Model Pin
Member 1206160021-Sep-15 2:56
Member 1206160021-Sep-15 2:56 
By the way if I do this:

HTML
<th>            @Html.DisplayNameFor(model => model.name)</th>

Where

HTML
@using TestMVCApplication.Models

<!--Declare that we will use this model.-->
@model List<Product>


I get


Compilation Error

C++
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: CS1061: 'System.Collections.Generic.List<TestMVCApplication.Models.Product>' does not contain a definition for 'name' and no extension method 'name' accepting a first argument of type 'System.Collections.Generic.List<TestMVCApplication.Models.Product>' could be found (are you missing a using directive or an assembly reference?)


Why?

PS Product has that property though
GeneralRe: model vs Model Pin
Richard Deeming21-Sep-15 3:19
mveRichard Deeming21-Sep-15 3:19 
GeneralRe: model vs Model Pin
Member 1206160021-Sep-15 4:31
Member 1206160021-Sep-15 4:31 
GeneralRe: model vs Model Pin
Richard Deeming21-Sep-15 6:14
mveRichard Deeming21-Sep-15 6:14 
GeneralRe: model vs Model Pin
Member 1206160021-Sep-15 8:41
Member 1206160021-Sep-15 8:41 
QuestionVSflexgrid control in asp.net mvc Pin
Shaikh Ansar15-Sep-15 19:06
Shaikh Ansar15-Sep-15 19:06 
AnswerRe: VSflexgrid control in asp.net mvc Pin
jkirkerx16-Sep-15 11:05
professionaljkirkerx16-Sep-15 11:05 
GeneralRe: VSflexgrid control in asp.net mvc Pin
Shaikh Ansar16-Sep-15 20:01
Shaikh Ansar16-Sep-15 20:01 
GeneralRe: VSflexgrid control in asp.net mvc Pin
jkirkerx17-Sep-15 6:23
professionaljkirkerx17-Sep-15 6:23 
GeneralRe: VSflexgrid control in asp.net mvc Pin
Shaikh Ansar17-Sep-15 18:03
Shaikh Ansar17-Sep-15 18:03 
QuestionAsp.net session Pin
Member 1198569615-Sep-15 2:37
Member 1198569615-Sep-15 2:37 
AnswerRe: Asp.net session Pin
jkirkerx16-Sep-15 11:02
professionaljkirkerx16-Sep-15 11:02 
QuestionASP.NET Pin
scud1014-Sep-15 23:35
scud1014-Sep-15 23:35 
AnswerRe: ASP.NET Pin
Richard MacCutchan14-Sep-15 23:53
mveRichard MacCutchan14-Sep-15 23:53 
AnswerRe: ASP.NET Pin
PANKAJMAURYA12-Oct-15 23:17
professionalPANKAJMAURYA12-Oct-15 23:17 
Questionmvc viewbag Pin
Analice14-Sep-15 21:46
Analice14-Sep-15 21:46 
AnswerRe: mvc viewbag Pin
User 418025421-Dec-15 6:36
User 418025421-Dec-15 6:36 
Questionhow to use querystring in html tags Pin
Member 1187854114-Sep-15 0:40
Member 1187854114-Sep-15 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.