I have a webform on aspx page with sql server2005 connectivity.
Now whenever user clicks on insert button after submitting all the values a stored procedure executes in sql server and data is inserted in tables.Problem is that a single record is inserted two times in database table due to which it gives error of duplicate record insertion.
When i tried to execute my procedure from sql server record inserts only once in table.
It means that my front end code is executing twice for one record but i m unable to get it.
Here is my App_Code/Class1.cs code-
public string execquery(string sqlquery)
cmd = new SqlCommand();
cmd.CommandText = sqlquery;
cmd.Connection = conn;
string enq_no = Convert.ToString(cmd.ExecuteScalar());
catch (SqlException ex)
My index.aspx.cs code-
H protected void B1_Click(object sender, Even
View Complete Post