Insert command on Formview
<p>I'm trying to insert data into my database via a Formview:</p>

<pre><code>&lt;asp:FormView ID="FormView3" runat="server" DataSourceID="SqlDataSource2" RenderOuterTable="False"
        DefaultMode="Insert"&gt;
        &lt;InsertItemTemplate&gt;
            Name:
            &lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# Bind("Name") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            E-mail:
            &lt;asp:TextBox ID="TextBox2" runat="server" Text='&lt;%# Bind("Email") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            Website:
            &lt;asp:TextBox ID="TextBox3" runat="server" Text='&lt;%# Bind("Website") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            Comment:
            &lt;asp:TextBox ID="TextBox4" runat="server" Text='&lt;%# Bind("Comment") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            &lt;asp:Button ID="postcomment" runat="server" Text="Button" OnClick="postcomment_Click" /&gt;
        &lt;/InsertItemTemplate&gt;
    &lt;/asp:FormView&gt;
</code></pre>

<p>I tried creating a Button to insert, here's my event:</p>

<pre><code>protected void postcomment_Click(object sender, EventArgs e)
    {
        FormView3.InsertItem(true);
    }
</code></pre>

<p>But this doesn't seem to be doing anything. What am I doing wrong? I only have experience with other data bound controls that automatically build the Insert/Cancel for me.</p>

<p>EDIT:</p>

<p>This is what I have after following Jupaol's advice:</p>

<pre><code>&lt;asp:FormView ID="FormView3" runat="server" DataSourceID="SqlDataSource4" RenderOuterTable="False" DefaultMode="Insert"&gt;
        &lt;InsertItemTemplate&gt;
            Name:
            &lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# Bind("Name") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            E-mail:
            &lt;asp:TextBox ID="TextBox2" runat="server" Text='&lt;%# Bind("Email") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            Website:
            &lt;asp:TextBox ID="TextBox3" runat="server" Text='&lt;%# Bind("Website") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            Comment:
            &lt;asp:TextBox ID="TextBox4" runat="server" Text='&lt;%# Bind("Comment") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            pid:
            &lt;asp:TextBox ID="TextBox5" runat="server" Text='&lt;%# Bind("PostId") %&gt;'&gt;&lt;/asp:TextBox&gt;
            &lt;br /&gt;
            &lt;asp:Button ID="postcomment" runat="server" Text="Button" CommandName="Insert" /&gt;
        &lt;/InsertItemTemplate&gt;
    &lt;/asp:FormView&gt;
</code></pre>

<p>SQLDataSource:</p>

<pre><code>&lt;asp:SqlDataSource ID="SqlDataSource4" runat="server" 
        ConnectionString="&lt;%$ ConnectionStrings:orangefreshConnectionString1 %&gt;" 
        DeleteCommand="DELETE FROM [Comment] WHERE [Id] = @Id" 
        InsertCommand="INSERT INTO [Comment] ([Name], [Email], [Website], [Comment], [PostId]) VALUES (@Name, @Email, @Website, @Comment, @PostId)" 
        SelectCommand="SELECT [Name], [Email], [Website], [Comment], [PostId], [Id] FROM [Comment]" 
        UpdateCommand="UPDATE [Comment] SET [Name] = @Name, [Email] = @Email, [Website] = @Website, [Comment] = @Comment, [PostId] = @PostId WHERE [Id] = @Id"&gt;
</code></pre>

<p>Still, when I click the insert button, nothing happens - there seems to be a postback, but no entry makes it to my table (values I punched into the page are still on the textboxes)</p>
