Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have list items like below
Declaration
ListItems
p1
p2
p3


Myclass

p1
p2
p3
List<myclass> GenericList{get;set;}
ListItems ListItems {get;set;}

Utilization

MyClass obj

obj.ListItems=GetData();


In MVC



In mvc view

foreach(var items in Model.GenericList)
{

@Html.RenderPartial("_Pa",Model.ListItems )
}

InPartial view i want to pass as normal list so here how to convert generic items
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jan-16 5:46am    
Just think about it: how items can be generic? Not types, but items...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900