Author: NetBlazer | Posted on: 12/8/2008 12:06:56 PM | Views : 435

 Hi,
 I have a simple input form with an sql data source control and a submit button.  On click of the button duplicate (4 records) are inserted in the database.  It should only be on record inserted per button click.  Would anyone tell me what I'm doing from by viewing the below code and point me in the right direction.
 
Thank you.
 
ASPX.PAGE
<%@ Page Language="VB" %>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.SqlClient" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="VB" runat="server">

    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        
   ...

Go to the complete details ...