asp.net mvc viewdata
- by mazhar kaunain baig
<% foreach (var Lang in ((IEnumerable<Egovt.Models.Language>)ViewData["Languages"]))
{ %>
<div id="tabs-<%=Html.Encode(Lang.int_LangId) %>">
<% foreach (var OrganizationMeta in ((IEnumerable<Egovt.Models.OrganizationMeta>)ViewData["OrganizationMeta"]))
{ %>
<% if (OrganizationMeta.vcr_DateType == "text")
{ %>
<%=Server.HtmlDecode(OrganizationMeta.vcr_MetaValue)%><br /> <a href="#"></a>
<% } else if (OrganizationMeta.vcr_DateType == "file") { %>
<img alt="Image" src="../../Content/Logo/dd.gif" />
<% } %>
<% } %>
</div>
<% } %>
I want to base my second loop on the basis of first loop on the langid field, there are many ways but what you guys will use