C
cerr
Hi There,
I'm using following code to insert data into my DB but it doesn't
work:
try
{
int tmp = 0;
tmp =
this.routeTableAdapter1.InsertRoute(Int32.Parse(this.DestNum.Text),
this.Destination.Text, Int32.Parse(this.LineNum.Text));
MessageBox.Show("inserted " + tmp.ToString() + "
elements into the route table.");
MessageBox.Show("Update() returns: " +
routeTableAdapter1.Update(myPID_DB_DataSet).ToString());
myPID_DB_DataSet.AcceptChanges();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
My Upsdate(_) call always returns 0 even tho i get a 1 returnmed from
my InsetRoute method. How come?
What am i missing?
Thanks!
I'm using following code to insert data into my DB but it doesn't
work:
try
{
int tmp = 0;
tmp =
this.routeTableAdapter1.InsertRoute(Int32.Parse(this.DestNum.Text),
this.Destination.Text, Int32.Parse(this.LineNum.Text));
MessageBox.Show("inserted " + tmp.ToString() + "
elements into the route table.");
MessageBox.Show("Update() returns: " +
routeTableAdapter1.Update(myPID_DB_DataSet).ToString());
myPID_DB_DataSet.AcceptChanges();
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
My Upsdate(_) call always returns 0 even tho i get a 1 returnmed from
my InsetRoute method. How come?
What am i missing?
Thanks!