Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
QuestionPick up a file Pin
Hum Dum25-Jun-07 19:26
Hum Dum25-Jun-07 19:26 
AnswerRe: Pick up a file Pin
Manas Bhardwaj25-Jun-07 20:05
professionalManas Bhardwaj25-Jun-07 20:05 
AnswerRe: Pick up a file Pin
I.explore.code25-Jun-07 20:30
I.explore.code25-Jun-07 20:30 
QuestionAdding property to a control Pin
anujose25-Jun-07 18:53
anujose25-Jun-07 18:53 
AnswerRe: Adding property to a control Pin
originSH25-Jun-07 22:11
originSH25-Jun-07 22:11 
Questionhow to check the valid username and password from database? Pin
help as an alias25-Jun-07 18:22
help as an alias25-Jun-07 18:22 
AnswerRe: how to check the valid username and password from database? Pin
Manas Bhardwaj25-Jun-07 19:05
professionalManas Bhardwaj25-Jun-07 19:05 
AnswerRe: how to check the valid username and password from database? Pin
Manas Bhardwaj25-Jun-07 19:06
professionalManas Bhardwaj25-Jun-07 19:06 
try {
	SqlConnection con = new SqlConnection("connectionstring");
	string sqlQuery = "select user,pwd from Login where user= ' " + this.TextBox1.Text + " ' and pwd=' " + this.TextBox2.Text + " ' ";
	con.Open();
	SqlCommand com = new SqlCommand(sqlQuery, con);
	int results = com.ExecuteScalar;
	if (results == 1)
	{
		return true;
	}
	else
	{
		return false;

	}
	con.Close();
	com.Dispose();
}
catch (SqlException ex) {
	MessageBox.Show(ex.ToString);
}

QuestionRe: how to check the valid username and password from database? Pin
Vikram A Punathambekar25-Jun-07 19:53
Vikram A Punathambekar25-Jun-07 19:53 
AnswerRe: how to check the valid username and password from database? Pin
Manas Bhardwaj25-Jun-07 20:24
professionalManas Bhardwaj25-Jun-07 20:24 
GeneralRe: how to check the valid username and password from database? Pin
Brady Kelly25-Jun-07 21:06
Brady Kelly25-Jun-07 21:06 
GeneralRe: how to check the valid username and password from database? Pin
Vasudevan Deepak Kumar25-Jun-07 21:50
Vasudevan Deepak Kumar25-Jun-07 21:50 
GeneralRe: how to check the valid username and password from database? Pin
help as an alias25-Jun-07 21:00
help as an alias25-Jun-07 21:00 
QuestionUsing Delegates To Communicate Pin
DavidNelson25-Jun-07 17:58
DavidNelson25-Jun-07 17:58 
AnswerRe: Using Delegates To Communicate Pin
Leslie Sanford25-Jun-07 18:47
Leslie Sanford25-Jun-07 18:47 
AnswerRe: Using Delegates To Communicate Pin
mav.northwind25-Jun-07 18:47
mav.northwind25-Jun-07 18:47 
Question.ReadInt32() is different to java's .readInt()? Pin
kripzz25-Jun-07 16:47
kripzz25-Jun-07 16:47 
AnswerRe: .ReadInt32() is different to java's .readInt()? Pin
Paul Conrad25-Jun-07 17:02
professionalPaul Conrad25-Jun-07 17:02 
GeneralRe: .ReadInt32() is different to java's .readInt()? [modified] Pin
kripzz25-Jun-07 18:10
kripzz25-Jun-07 18:10 
AnswerRe: .ReadInt32() is different to java's .readInt()? Pin
Guffa25-Jun-07 18:40
Guffa25-Jun-07 18:40 
GeneralRe: .ReadInt32() is different to java's .readInt()? Pin
Paul Conrad25-Jun-07 18:46
professionalPaul Conrad25-Jun-07 18:46 
GeneralRe: .ReadInt32() is different to java's .readInt()? [modified] Pin
kripzz25-Jun-07 19:23
kripzz25-Jun-07 19:23 
QuestionLate bound (I think?) when using SJPhonoe API Pin
Gene Arnold25-Jun-07 16:43
Gene Arnold25-Jun-07 16:43 
AnswerRe: Late bound (I think?) when using SJPhonoe API Pin
Paul Conrad25-Jun-07 17:25
professionalPaul Conrad25-Jun-07 17:25 
GeneralRe: Late bound (I think?) when using SJPhonoe API Pin
Gene Arnold25-Jun-07 23:34
Gene Arnold25-Jun-07 23:34 

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.