sqldatasource problem
<p>i have a listview with an sqldatasource and the link buttons don't get fired up, but if i use as datasource an String array they get fired up. Am i missing something in my code?</p>

<p>aspx page:</p>

<pre><code>    &lt;%
    SqlDataSourceArticoleUser.ConnectionString = conn;
    SqlDataSourceArticoleUser.SelectCommand = "SELECT top 10 * FROM (SELECT ROW_NUMBER() OVER (ORDER BY id desc) AS Row, * FROM articole) AS EMP WHERE Row &gt;" + pag + " and username='" + user + "'";
            %&gt;
&lt;asp:ListView ID="ListViewArticoleUser" runat="server" DataSourceID="SqlDataSourceArticoleUser"&gt;
                &lt;LayoutTemplate&gt;
                    &lt;ul&gt;
                        &lt;asp:PlaceHolder ID="itemPlaceholder" runat="server" /&gt;
                    &lt;/ul&gt;
                &lt;/LayoutTemplate&gt;
                &lt;ItemTemplate&gt;
                    &lt;asp:LinkButton ID="LinkButtonEditArticolEdit" runat="server" Text="edit" CommandName="articoledit"&gt;&lt;/asp:LinkButton&gt;
                    &lt;asp:LinkButton ID="LinkButtonStergeArticolEdit" runat="server" Text="sterge" CommandName="articolsterge"&gt;&lt;/asp:LinkButton&gt;
                &lt;/ItemTemplate&gt;
&lt;/asp:ListView&gt;
&lt;asp:SqlDataSource ID="SqlDataSourceArticoleUser" runat="server"&gt;&lt;/asp:SqlDataSource&gt;
</code></pre>

<p>aspx.cs page:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            SqlDataSourceArticoleUser.DataBind();
        }
    }
    protected void Page_Init(object sender, EventArgs e)
    {
        ListViewArticoleUser.ItemCommand += new EventHandler&lt;ListViewCommandEventArgs&gt;(ListViewArticoleUser_EventHandler);
    }
    protected void ListViewArticoleUser_EventHandler(object sender, ListViewCommandEventArgs e)
    {
        if (e.CommandName == "articolsterge")
        {
        }
    }
</code></pre>
