Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 2:16
Miwin Solutions20-Apr-16 2:16 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 2:58
professionalJochen Arndt20-Apr-16 2:58 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 3:52
Miwin Solutions20-Apr-16 3:52 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 3:59
professionalJochen Arndt20-Apr-16 3:59 
QuestionHow to login to a website programmatically using C#.? Pin
mbatra3118-Apr-16 23:58
mbatra3118-Apr-16 23:58 
AnswerRe: How to login to a website programmatically using C#.? Pin
Sascha Lefèvre19-Apr-16 0:06
professionalSascha Lefèvre19-Apr-16 0:06 
AnswerRe: How to login to a website programmatically using C#.? Pin
ChizI19-Apr-16 7:03
ChizI19-Apr-16 7:03 
QuestionVisual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:04
clapclap18-Apr-16 12:04 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:20
mveDave Kreskowiak18-Apr-16 12:20 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:22
clapclap18-Apr-16 12:22 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:29
mveDave Kreskowiak18-Apr-16 12:29 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Philippe Mori18-Apr-16 12:28
Philippe Mori18-Apr-16 12:28 
QuestionI can not log in in my own C# Project in my Compiuter Pin
Member 1228884018-Apr-16 5:20
Member 1228884018-Apr-16 5:20 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Simon_Whale18-Apr-16 5:32
Simon_Whale18-Apr-16 5:32 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Sascha Lefèvre18-Apr-16 5:33
professionalSascha Lefèvre18-Apr-16 5:33 
Your SQL-Statement is invalid. You probably intended it to look like this:
C#
"Select Count(*) from Login where Username = '" + Username_text + "' and Password= '" + Password_text + "'"
                              ^
But:

1) You shouldn't build SQL-Statements by concatenating strings for values. Your application is susceptible to SQL-injection (Google it) which can lead to inadvertent or deliberate destruction of your whole database. Use SQL-parameters instead.

2) You shouldn't store passwords in plain text.

3) You should use using-statements for your SqlConnection and SqlCommand.

Take a look here:

Properly executing database operations[^]

site:codeproject.com storing passwords safely - Google Search[^]

Troy Hunt: Everything you ever wanted to know about building a secure password reset feature[^]
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
OriginalGriff18-Apr-16 5:37
mveOriginalGriff18-Apr-16 5:37 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Patrice T18-Apr-16 5:41
mvePatrice T18-Apr-16 5:41 
QuestionRe: I can not log in in my own C# Project in my Compiuter Pin
Eddy Vluggen18-Apr-16 12:25
professionalEddy Vluggen18-Apr-16 12:25 
Questiondoubt Pin
Member 1243170118-Apr-16 2:54
Member 1243170118-Apr-16 2:54 
AnswerRe: doubt Pin
Richard MacCutchan18-Apr-16 3:09
mveRichard MacCutchan18-Apr-16 3:09 
AnswerRe: doubt Pin
OriginalGriff18-Apr-16 3:14
mveOriginalGriff18-Apr-16 3:14 
GeneralRe: doubt Pin
V.19-Apr-16 1:38
professionalV.19-Apr-16 1:38 
GeneralRe: doubt Pin
OriginalGriff19-Apr-16 2:47
mveOriginalGriff19-Apr-16 2:47 
GeneralRe: doubt Pin
V.19-Apr-16 3:33
professionalV.19-Apr-16 3:33 
QuestionRe: doubt Pin
Eddy Vluggen18-Apr-16 4:33
professionalEddy Vluggen18-Apr-16 4:33 

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.