asp.net mvc viewdata

Posted by mazhar kaunain baig on Stack Overflow See other posts from Stack Overflow or by mazhar kaunain baig
Published on 2010-05-29T08:09:42Z Indexed on 2010/05/29 8:12 UTC
Read the original article Hit count: 411

Filed under:
|
  <% 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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc