Quote:Now i need to display like above simulataneously that too dynamically i know we can use foreach loop with (var prod in products)
foreach
for
<br /> @{<br /> int i=0;<br /> foreach (var prod in products) {<br /> var comp=Companies[i];<br /> ... // use here <var>prod</var> and comp to <var>comp</var> as you need<br /> i++;<br /> }<br /> }@<br />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)