Information Added, Nothing There

  • Thread starter Thread starter Jesse Naiman
  • Start date Start date
J

Jesse Naiman

Dear Friendly Person who will help,
I have a web application that allows the user to update the database
from the website. Recently I discovered that nothing was being saved. The
information is successfully added to the DataSet (which gives the user the
impression of an update). According to the code, as I stepped through it the
database is updated, and the program never ends up in the catch blocks. How
is this possible? I would really appreciate the help

Jesse Naiman
 
Here's the code:
public void UpdateArtist(DataTable dtMain, DataTable dtText){

try{

Artist.Update (dtMain);

dtMain.AcceptChanges();

ArtistText.Update (dtText);

dtText.AcceptChanges();

}

catch (Exception ex){

ex.ToString();

dm.instance.FillAll();

}

}
 
Hi,

I think you will have to supply some code for more usefull feedback. But one
question, are you using the DataAdapter and calling the Update method to
actually propogate the DataSet changes back to the database?

Regards

Chris Taylor
 
Back
Top