title: Find control in ListView EmptyDataTemplate
body: <p>I have the a <code>ListView</code> like this</p>
  
  <pre><code>&lt;asp:ListView ID="ListView1" runat="server"&gt;
     &lt;EmptyDataTemplate&gt;
        &lt;asp:Literal ID="Literal1" runat="server" text="some text"/&gt;
     &lt;/EmptyDataTemplate&gt;
     ...
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>In <code>Page_Load()</code> I have the following:</p>
  
  <pre><code>Literal x = (Literal)ListView1.FindControl("Literal1");
  x.Text = "other text";
  </code></pre>
  
  <p>but <code>x</code> returns <code>null</code>. I&rsquo;d like to change the text of the <code>Literal</code> control but I don&rsquo;t have no idea how to do it.</p>