Avoid duplicate data when using asp:control to insert
<p>I have a ASP.NET code, I use it to insert and view my data from a *.mdb file.<br>
When I reload the browser reload, it insert the same old data.
        </p>

<pre><code>    &lt;asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        DataKeyNames="user_id" DataSourceID="AccessDataSource1" Height="50px" 
        Width="125px" DefaultMode="Insert"&gt;
        &lt;Fields&gt;
            &lt;asp:BoundField DataField="user_id" HeaderText="user_id" InsertVisible="False" 
                ReadOnly="True" SortExpression="user_id" /&gt;
            &lt;asp:BoundField DataField="user_name" HeaderText="user_name" 
                SortExpression="user_name" /&gt;
            &lt;asp:BoundField DataField="user_pass" HeaderText="user_pass" 
                SortExpression="user_pass" /&gt;
            &lt;asp:BoundField DataField="user_email" HeaderText="user_email" 
                SortExpression="user_email" /&gt;
            &lt;asp:CommandField ButtonType="Button" ShowInsertButton="True" /&gt;
        &lt;/Fields&gt;
    &lt;/asp:DetailsView&gt;

    &lt;div ID="Div1" runat="server"&gt;&lt;/div&gt;


    &lt;asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        DataFile="~/App_Data/esn.mdb" 
        SelectCommand="SELECT * FROM [user]"
        InsertCommand="INSERT INTO [user] ([user_name], [user_pass], [user_email]) VALUES (@user_name, @user_pass, @user_email)"&gt;
        &lt;InsertParameters&gt;
            &lt;asp:Parameter Name="user_name" Type="String" /&gt;
            &lt;asp:Parameter Name="user_pass" Type="String" /&gt;
            &lt;asp:Parameter Name="user_email" Type="String" /&gt;
        &lt;/InsertParameters&gt;
    &lt;/asp:AccessDataSource&gt;





    &lt;asp:GridView ID="GridView1" runat="server" 
        AutoGenerateColumns="False" DataKeyNames="user_id" 
        DataSourceID="AccessDataSource1"&gt;
        &lt;Columns&gt;
            &lt;asp:BoundField DataField="user_id" HeaderText="user_id" InsertVisible="False" 
                ReadOnly="True" SortExpression="user_id" /&gt;
            &lt;asp:BoundField DataField="user_name" HeaderText="user_name" 
                SortExpression="user_name" /&gt;
            &lt;asp:BoundField DataField="user_pass" HeaderText="user_pass" 
                SortExpression="user_pass" /&gt;
            &lt;asp:BoundField DataField="user_email" HeaderText="user_email" 
                SortExpression="user_email" /&gt;
        &lt;/Columns&gt;
    &lt;/asp:GridView&gt;

&lt;/form&gt;
</code></pre>
