M
mg
The following code inserts a row into an Oracle database
most, but not all, of the time. What code can I use to get
this to work 100% of the time?
private void ImageButton1_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
oracleDataAdapter1.Fill(dataSet21);
DataRow dr = dataSet21.Tables[0].NewRow();
dr["deptno"]= TextBox1.Text;
dr["dname"]= TextBox2.Text;
dr["loc"]= TextBox3.Text;
dataSet21.Tables[0].Rows.Add(dr);
oracleDataAdapter1.Update(dataSet21);
}
most, but not all, of the time. What code can I use to get
this to work 100% of the time?
private void ImageButton1_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
oracleDataAdapter1.Fill(dataSet21);
DataRow dr = dataSet21.Tables[0].NewRow();
dr["deptno"]= TextBox1.Text;
dr["dname"]= TextBox2.Text;
dr["loc"]= TextBox3.Text;
dataSet21.Tables[0].Rows.Add(dr);
oracleDataAdapter1.Update(dataSet21);
}