Click here to Skip to main content
15,894,546 members
Home / Discussions / C#
   

C#

 
AnswerRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon23-May-17 21:04
mvePete O'Hanlon23-May-17 21:04 
GeneralRe: Display a Message for Failure or Success C# Pin
Member 1321855223-May-17 23:19
Member 1321855223-May-17 23:19 
GeneralRe: Display a Message for Failure or Success C# Pin
OriginalGriff23-May-17 23:27
mveOriginalGriff23-May-17 23:27 
GeneralRe: Display a Message for Failure or Success C# Pin
MadMyche25-May-17 15:57
professionalMadMyche25-May-17 15:57 
GeneralRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon25-May-17 20:59
mvePete O'Hanlon25-May-17 20:59 
GeneralRe: Display a Message for Failure or Success C# Pin
MadMyche26-May-17 2:31
professionalMadMyche26-May-17 2:31 
GeneralRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon26-May-17 2:34
mvePete O'Hanlon26-May-17 2:34 
AnswerRe: Display a Message for Failure or Success C# Pin
Richard MacCutchan23-May-17 21:16
mveRichard MacCutchan23-May-17 21:16 
Member 13218552 wrote:
gives a successful message regardless of the real result.
That is because you are not checking any result to see if it succeeded. In fact you do not even perform any database function before displaying the message. Assuming that da is a DataAdapter, you should be using the SqlDataAdapter.Update Method (System.Data.SqlClient)[^] to perform your changes and, most importantly, checking the result when the method returns.
Questionc# data table filter Pin
Member 1298110422-May-17 19:51
Member 1298110422-May-17 19:51 
AnswerRe: c# data table filter Pin
OriginalGriff22-May-17 20:35
mveOriginalGriff22-May-17 20:35 
AnswerRe: c# data table filter Pin
Pete O'Hanlon22-May-17 23:45
mvePete O'Hanlon22-May-17 23:45 
GeneralRe: c# data table filter Pin
Chris Quinn23-May-17 0:24
Chris Quinn23-May-17 0:24 
GeneralRe: c# data table filter Pin
Pete O'Hanlon23-May-17 1:17
mvePete O'Hanlon23-May-17 1:17 
Questionhow to achieve cell_doubleclick event to be fired on gridview Pin
Mayank Kumar22-May-17 18:45
Mayank Kumar22-May-17 18:45 
AnswerRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Richard MacCutchan22-May-17 21:19
mveRichard MacCutchan22-May-17 21:19 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Mayank Kumar22-May-17 22:43
Mayank Kumar22-May-17 22:43 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Richard MacCutchan22-May-17 22:58
mveRichard MacCutchan22-May-17 22:58 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Mayank Kumar23-May-17 0:02
Mayank Kumar23-May-17 0:02 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Richard MacCutchan23-May-17 0:08
mveRichard MacCutchan23-May-17 0:08 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Mayank Kumar23-May-17 0:12
Mayank Kumar23-May-17 0:12 
GeneralRe: how to achieve cell_doubleclick event to be fired on gridview Pin
Pete O'Hanlon23-May-17 0:12
mvePete O'Hanlon23-May-17 0:12 
QuestionMerging 2 different JSON objects Pin
Farhad Eft21-May-17 21:41
Farhad Eft21-May-17 21:41 
AnswerRe: Merging 2 different JSON objects Pin
Richard MacCutchan21-May-17 22:49
mveRichard MacCutchan21-May-17 22:49 
GeneralRe: Merging 2 different JSON objects Pin
Farhad Eft24-May-17 0:41
Farhad Eft24-May-17 0:41 
Questionbest way to Lazy-Load a Dictionary' s 'Values ? Pin
BillWoodruff18-May-17 6:51
professionalBillWoodruff18-May-17 6:51 

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.