title: Can't access TextBox inside Repeater Itemtemplate
body: <p><strong>I know this question is asked already for a couple of times but i didn't get the solution..</strong></p>
  
  <p>i have tried this below code:</p>
  
  <pre><code>foreach (RepeaterItem item in repeater1.Items)
          {
              TextBox txtName = (TextBox)item.FindControl("txtComment");
              if (txtName != null)
              {
                  lblCheck.Text= txtName.Text;
              }
          }
  </code></pre>
  
  <p>the above code works but return empty...</p>
  
  <p>this code finds the TextBox txtComment really well i mean when i have debug this code the value i entered in the txtComment TextBox assigned to lblCheck Label but than the lblCheck where i'm showing the TextBox value is disappeared don't know whats happened to that Label...</p>
  
  <p>than i search about this problem than someone said that use
  EnableViewState="False" in the repeater but when i put this attribute
  now the whole repeater is disappeared....</p>
  
  <p>This is aspx page</p>
  
  <pre><code>  &lt;asp:Repeater runat="server" ID="repeater1" EnableViewState="false"&gt;
       &lt;ItemTemplate&gt;
      &lt;div class="Postcomment" style="float:left;background-         color:yellow;padding:5px;width:100%;margin-top:10px"&gt;
                      &lt;div style="float:left;background-   color:AppWorkspace;width:100%"&gt;
  
                          &lt;div style="float:left;width:100%"&gt;
                              &lt;asp:Image runat="server" ImageUrl='&lt;%#   "Images\\"+Eval("userPic") %&gt;' Width="24" Height="24" /&gt;
                              &lt;asp:TextBox runat="server" ID="txtComment"    placeholder="write a comment..." style="margin-top:2.5px;margin-  left:5px;width:92%"&gt;&lt;/asp:TextBox&gt;
  
                          &lt;/div&gt;
                          &lt;div style="float:right"&gt;
  
                              &lt;input type="button" value="Post"   id="btnComment" class="btn btn-primary btn-sm" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;/div&gt;
  
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p></p>
  
  <p>so please help me, i'm facing this problem in my final year project so i must have to solved this...</p>
  
  <p>thanks</p>