how to bind data to listview in web
<p>I am having Table <code>Tbl_purchase</code>.I want to show items in <code>Tbl_purchase</code> to <code>List view</code> control in my website .</p>

<p>First i tried to fill tha listview with <code>datasource</code> property through coding.I filled the datatable with data from <code>Tbl_purchase</code> and then my code is like</p>

<pre><code>Listview1.Datasource=dt
ListView1.Databind()
</code></pre>

<p>But it shows an error like <code>itemtemplate is missing</code>.Then from show smart tag i selected datasource as <code>Tbl_purchase</code>,at that time it works for my web site.</p>

<p>But how can i fill listview throuh coding?Please help me.Thanks in Advance</p>
