title: Binding Repeater with Dictionary<string, Dictionary<int,[object]>
body: <p>I am new to .NET, so I'm struggling with this. I have a content page, with a repeater control. I have a Dictionary, which is a <code>Dictionary&lt;string, Dictionary&lt;int,[object]&gt;&gt;</code>. I want the value of the controls inside the repeater control to get it from the object attributes - Candidate Name, would be <code>object.CandName</code>, candidate phone would be <code>object.Phone</code> etc.</p>
  
  <p>I am not sure how to use <code>Eval</code> for this type of Dictionary. Most of the examples point to <code>Eval("Value")</code>, but it is not giving the correct value for me. Kindly help! </p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server"&gt;
    &lt;div id="rcontent"&gt; 
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td&gt;
            &lt;asp:Label ID="lblerror" runat="server" Text="" Visible="true" CssClass="alert"&gt;&lt;/asp:Label&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
      &lt;div id ="rptdiv"&gt;
        &lt;asp:Repeater ID="Repeater1" runat="server" EnableViewState="false"&gt;
          &lt;ItemTemplate&gt;
            &lt;div id="Div3"&gt; 
              &lt;table class="GridViewStyleNoBorder" width=750px cellspacing="0" border="0" &gt;
                &lt;tr&gt;
                  &lt;td class="PagerStyle" colspan="4"&gt; 
                    &lt;asp:Label ID="lblName" Runat="server"
  Text='&lt;%= Need the value of the [object].objectproperty from dictionary here %&gt;' /&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
              &lt;/table&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>This is my <code>Page_Load</code> code behind - <code>BLDecision</code> is my business layer code, which returns the dictionary and dictionary values are correct. I checked them in debug mode. </p>
  
  <p>Code Behind:</p>
  
  <pre><code>Dictionary(int, Dictionary(int, InterviewFeedback)) ;
  
  CandIntDetails = new Dictionary(int, Dictionary(int, InterviewFeedback))();
  
  BLDecision objBLDecision = new BLDecision();
  int ReqCategoryID = 0;
  if (Request.QueryString["ReqCategoryID"] != null)
      ReqCategoryID = int.Parse(Request.QueryString["ReqCategoryID"].ToString());
  CandIntDetails = objBLDecision.GetCandidatesforReqCategory(ReqCategoryID);
  
  Repeater1.DataSource = CandIntDetails;
  Repeater1.DataBind();
  </code></pre>
  
  <p>Should I use from codebehind, can I not do <code>Eval('&lt;% ....%&gt;')</code> in the aspx page?</p>
  
  <p>Thanks in advance for your help.</p>