Click here to Skip to main content
15,880,651 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# to Mysql Login code Error Pin
Richard MacCutchan22-Mar-22 1:28
mveRichard MacCutchan22-Mar-22 1:28 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi22-Mar-22 1:37
N Mohamed rafi22-Mar-22 1:37 
GeneralRe: C# to Mysql Login code Error Pin
Dave Kreskowiak22-Mar-22 2:57
mveDave Kreskowiak22-Mar-22 2:57 
GeneralRe: C# to Mysql Login code Error Pin
Richard MacCutchan21-Mar-22 22:46
mveRichard MacCutchan21-Mar-22 22:46 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 22:49
N Mohamed rafi21-Mar-22 22:49 
GeneralRe: C# to Mysql Login code Error Pin
Richard MacCutchan21-Mar-22 23:10
mveRichard MacCutchan21-Mar-22 23:10 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 23:26
N Mohamed rafi21-Mar-22 23:26 
GeneralRe: C# to Mysql Login code Error Pin
Richard MacCutchan21-Mar-22 23:42
mveRichard MacCutchan21-Mar-22 23:42 
Yes, it shows login successful because, as I keep repeating, you post that message even when the ExecuteNonQuery fails. You need to start thinking about your code in logical steps rather than just throwing statements together and hoping it will work.
1. Perform the ExecuteNonQuery, and capture the return value.
2. Does the return value indicate success?
2.1. No - tell the user it failed.
2.2 Yes - and only at this point, tell the user it succeeded.
3. Perform other actions.
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 23:49
N Mohamed rafi21-Mar-22 23:49 
GeneralRe: C# to Mysql Login code Error Pin
Richard MacCutchan21-Mar-22 23:55
mveRichard MacCutchan21-Mar-22 23:55 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi22-Mar-22 1:32
N Mohamed rafi22-Mar-22 1:32 
GeneralRe: C# to Mysql Login code Error Pin
Dave Kreskowiak22-Mar-22 1:43
mveDave Kreskowiak22-Mar-22 1:43 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi22-Mar-22 1:44
N Mohamed rafi22-Mar-22 1:44 
GeneralRe: C# to Mysql Login code Error Pin
Dave Kreskowiak22-Mar-22 1:45
mveDave Kreskowiak22-Mar-22 1:45 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi22-Mar-22 1:46
N Mohamed rafi22-Mar-22 1:46 
GeneralRe: C# to Mysql Login code Error Pin
Dave Kreskowiak22-Mar-22 1:49
mveDave Kreskowiak22-Mar-22 1:49 
QuestionC# - managing JSON serialisation Pin
DerekT-P21-Mar-22 0:32
professionalDerekT-P21-Mar-22 0:32 
AnswerRe: C# - managing JSON serialisation Pin
Richard Deeming21-Mar-22 2:10
mveRichard Deeming21-Mar-22 2:10 
GeneralRe: C# - managing JSON serialisation Pin
DerekT-P21-Mar-22 3:21
professionalDerekT-P21-Mar-22 3:21 
GeneralRe: C# - managing JSON serialisation Pin
Richard Deeming21-Mar-22 3:28
mveRichard Deeming21-Mar-22 3:28 
AnswerRe: C# - managing JSON serialisation Pin
Gerry Schmitz21-Mar-22 4:59
mveGerry Schmitz21-Mar-22 4:59 
GeneralRe: C# - managing JSON serialisation Pin
DerekT-P21-Mar-22 7:26
professionalDerekT-P21-Mar-22 7:26 
AnswerRe: C# - managing JSON serialisation Pin
Eddy Vluggen21-Mar-22 7:02
professionalEddy Vluggen21-Mar-22 7:02 
GeneralRe: C# - managing JSON serialisation Pin
DerekT-P21-Mar-22 7:34
professionalDerekT-P21-Mar-22 7:34 
QuestionRe: C# - managing JSON serialisation Pin
Eddy Vluggen21-Mar-22 12:26
professionalEddy Vluggen21-Mar-22 12:26 

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.