ListView Visible property
<p>I have a search results page where the list views visible property is always <code>false</code> on the first page load even though I set the value to <code>true</code> as seen below. It seems line is being ignored? Is there a reason why this property cannot be set on the first load?</p>

<p><img src="http://i.stack.imgur.com/TxkFS.png" alt="enter image description here"></p>

<p><strong>EDIT:</strong> Page load Event</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
   if (!IsPostBack)
   {
      if (Request.QueryString["query"] != null)
      {
         _searchTerm = Request.QueryString["query"].ToString();
         GetSearchResults();
         txtSearchBox.Text = _searchTerm;
       }
    }
 }
</code></pre>

<p>ListView Markup</p>

<pre><code>&lt;asp:PlaceHolder runat="server" ID="SearchResults" Visible="false"&gt;
 ...
&lt;asp:ListView id="lvSearch" runat="server"&gt;
    &lt;LayoutTemplate&gt;
        &lt;ul id="SearchResultsList"&gt;
            &lt;asp:PlaceHolder runat="server" ID="itemPlaceholder"&gt;&lt;/asp:PlaceHolder&gt;
        &lt;/ul&gt; 
    &lt;/LayoutTemplate&gt;
    &lt;ItemTemplate&gt;
        &lt;li class="searchResult"&gt;
            &lt;h2&gt;&lt;%#DataBinder.Eval(Container.DataItem, "Title")%&gt;&lt;/h2&gt;
            &lt;p&gt;&lt;%#DataBinder.Eval(Container.DataItem, "HighlightedPreview")%&gt;&lt;/p&gt;
            &lt;a href="&lt;%#DataBinder.Eval(Container.DataItem, "URL")%&gt;"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "URL")%&gt;&lt;/a&gt;
        &lt;/li&gt;
    &lt;/ItemTemplate&gt;
&lt;/asp:ListView&gt;
&lt;div runat="server" id="NoResults" visible="false"&gt;
    &lt;p&gt;The current search has returned no results. Please enter another search term in the box above.&lt;/p&gt;
&lt;/div&gt;
&lt;/asp:PlaceHolder&gt;
</code></pre>
