Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Webservice question Pin
Christian Graus12-Jun-08 6:36
protectorChristian Graus12-Jun-08 6:36 
GeneralRe: Webservice question Pin
johland12-Jun-08 7:09
johland12-Jun-08 7:09 
GeneralRe: Webservice question Pin
Christian Graus12-Jun-08 7:26
protectorChristian Graus12-Jun-08 7:26 
GeneralRe: Webservice question Pin
johland12-Jun-08 10:02
johland12-Jun-08 10:02 
QuestionHow to find some value in HashTable ? Pin
Yanshof12-Jun-08 5:08
Yanshof12-Jun-08 5:08 
AnswerRe: How to find some value in HashTable ? Pin
Christian Graus12-Jun-08 5:11
protectorChristian Graus12-Jun-08 5:11 
AnswerRe: How to find some value in HashTable ? Pin
Brady Kelly12-Jun-08 5:38
Brady Kelly12-Jun-08 5:38 
QuestionWrite to PDF file Pin
Verghese12-Jun-08 5:03
Verghese12-Jun-08 5:03 
AnswerRe: Write to PDF file Pin
Christian Graus12-Jun-08 5:10
protectorChristian Graus12-Jun-08 5:10 
QuestionTimeSpan beginners question Pin
NewToAspDotNet12-Jun-08 3:45
NewToAspDotNet12-Jun-08 3:45 
AnswerRe: TimeSpan beginners question Pin
Simon P Stevens12-Jun-08 3:57
Simon P Stevens12-Jun-08 3:57 
QuestionHow to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
bruze12-Jun-08 2:38
bruze12-Jun-08 2:38 
AnswerRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
Simon P Stevens12-Jun-08 4:02
Simon P Stevens12-Jun-08 4:02 
GeneralRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
bruze12-Jun-08 4:22
bruze12-Jun-08 4:22 
AnswerRe: How to Remove the Duplicate Key(Repeated data) in CSV or Excel file using C# . Pin
Russell Jones12-Jun-08 5:39
Russell Jones12-Jun-08 5:39 
QuestionTableAdapter.Update() problem. Pin
hdv21212-Jun-08 2:12
hdv21212-Jun-08 2:12 
hi in my solution, i created a table adapter and set select,insert,update,delete actions to my own stored procedures, then for add row, write the following code :

FrmCategory frm = new FrmCategory(false, false);
DsStack.CategoriesRow newRow = this.dt.NewCategoriesRow();
Session.SaveInSession("newCategory", newRow);
if (frm.ShowDialog() == DialogResult.OK)
{
   newRow = Session.LoadFromSession("newCategory") as DsStack.CategoriesRow;
   this.dt.Rows.Add(newRow);
   this.adapter.Update(this.dt); // error occured in this line
}


When my table in database is empty :
the first row add to table successfully, but the second row has not been add to database and the following error has shown me :
Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.

where does my problem and how to solve it ?
thanks
AnswerRe: TableAdapter.Update() problem. Pin
Shorgov12-Jun-08 3:38
Shorgov12-Jun-08 3:38 
AnswerRe: TableAdapter.Update() problem. Pin
alex.almeida12-Jun-08 4:46
alex.almeida12-Jun-08 4:46 
GeneralRe: TableAdapter.Update() problem. Pin
hdv21212-Jun-08 7:19
hdv21212-Jun-08 7:19 
GeneralRe: TableAdapter.Update() problem. Pin
alex.almeida19-Jun-08 4:23
alex.almeida19-Jun-08 4:23 
GeneralRe: TableAdapter.Update() problem. Pin
hdv21219-Jun-08 6:53
hdv21219-Jun-08 6:53 
QuestionConverting DOC files to PDF using C# Pin
Renukapadhamanaban12-Jun-08 2:10
Renukapadhamanaban12-Jun-08 2:10 
AnswerRe: Converting DOC files to PDF using C# -DUPLICATE POST Pin
Ashfield12-Jun-08 3:44
Ashfield12-Jun-08 3:44 
QuestionMulti threading, Timers Pin
koleraba12-Jun-08 1:52
koleraba12-Jun-08 1:52 
AnswerRe: Multi threading, Timers Pin
Jimmanuel12-Jun-08 2:59
Jimmanuel12-Jun-08 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.