Cannot Bind my Listview
<p>I want to bind my Listview but I can't. I dont know what I am doing wrong here. When I press ctrl+f5, the page is empty.</p>

<p>My Code is:</p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
        &lt;asp:ListView ID="ListView1" runat="server" DataKeyNames="Student_ID"&gt;
            &lt;LayoutTemplate&gt;
                &lt;table id="itemplaceholderContainer" runat="server"&gt;
                    &lt;tr id="itemplaceholder"&gt;
                        &lt;td&gt;
                            Student ID :
                        &lt;/td&gt;
                        &lt;td&gt;
                            Registration Number :
                        &lt;/td&gt;
                        &lt;td&gt;
                            Student Name :
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;
            &lt;/LayoutTemplate&gt;
            &lt;ItemTemplate&gt;
                StudentID:
                &lt;asp:Label ID="LabelID" runat="server" Text='&lt;%Eval("Student_ID") %&gt;'&gt;&lt;/asp:Label&gt;
                StudentRegistrationNumber:&lt;asp:Label ID="LabelNumber" runat="server" Text='&lt;%Eval("StudentRegistrationNumber") %&gt;'&gt;&lt;/asp:Label&gt;
                StudentName:&lt;asp:Label ID="LabelName" runat="server" Text='&lt;%Eval("Name") %&gt;'&gt;&lt;/asp:Label&gt;
            &lt;/ItemTemplate&gt;

        &lt;/asp:ListView&gt;
    &lt;/asp:Content&gt;
</code></pre>

<p>Codebehind is :</p>

<pre><code>    protected void Page_Load(object sender, EventArgs e)
            {
                SqlConnection cn = new SqlConnection(@"Data Source=LOCALHOST;Initial Catalog=ITCF;Integrated Security=True");
                SqlCommand cmd = new SqlCommand("Select * from Student", cn);
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                DataTable dt = new DataTable();
da.fill(dt);
                ListView1.DataSource = dt;
                ListView1.DataBind();
            }
</code></pre>
