ASP.NET ExecuteReader: CommandText property has not been initialized
<p>I keep getting the error <code>ExecuteReader: CommandText property has not been initialized</code> and i'm not sure why it points to this line in my code</p>

<pre><code>   dd1.DataSource = LogData.StermQ2(datelistquery).Tables(0).DefaultView
    dd1.DataBind()
    dd1.Items.Insert(0, new listitem("Any location", "%"))
</code></pre>

<p>The top line is the one with the error</p>

<p>Any help would be much appreciated</p>

<p>Thanks</p>

<p>Jamie</p>
