Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 3:10
musefan12-Oct-09 3:10 
GeneralRe: Connect to mapped network drive Pin
Luc Pattyn12-Oct-09 3:50
sitebuilderLuc Pattyn12-Oct-09 3:50 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 5:28
musefan12-Oct-09 5:28 
GeneralRe: Connect to mapped network drive Pin
ragnaroknrol12-Oct-09 7:56
ragnaroknrol12-Oct-09 7:56 
Questionhow to compare textbox string with data base field Pin
Mangesh Tomar12-Oct-09 0:49
Mangesh Tomar12-Oct-09 0:49 
AnswerRe: how to compare textbox string with data base field Pin
Luc Pattyn12-Oct-09 1:00
sitebuilderLuc Pattyn12-Oct-09 1:00 
AnswerRe: how to compare textbox string with data base field Pin
Md. Marufuzzaman12-Oct-09 1:24
professionalMd. Marufuzzaman12-Oct-09 1:24 
AnswerRe: how to compare textbox string with data base field Pin
OriginalGriff12-Oct-09 3:08
mveOriginalGriff12-Oct-09 3:08 
There are so many things wrong with this! For example:

Mangesh Tomar wrote:
connection.Open();

string selectString =
"SELECT Name, Password " +
"FROM login1 " +
"WHERE Name = '" + login.Text + "' AND Password = '" + psw.Text + "'";

cmd = new OleDbCommand(selectString, connection);
connection.Open();

Why try to open it twice?

Mangesh Tomar wrote:
String strResult = String.Empty;
if (strResult.Length > 0)
{
label5.Text = "YOU ARE LOGGED IN!";
}

What do you think is going to happen? Magic?

I sugest you go right back to the begining - create a new project, connect to that database and read a single record from the table. When you get that working, start building up from there.
Oh, and Luc is right - preserve your formatting with <pre> and </pre> tags around you original code when you post it here. It make it easier to read, and thus more likely to be read. (And Luc is one of the people you really want to read your code - you will probably never learn half the stuff he has forgotten...)

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

QuestionDynamically created Icon for Number in Taskbar Pin
stancrm11-Oct-09 23:30
stancrm11-Oct-09 23:30 
AnswerRe: Dynamically created Icon for Number in Taskbar Pin
freakyit11-Oct-09 23:46
freakyit11-Oct-09 23:46 
GeneralRe: Dynamically created Icon for Number in Taskbar Pin
stancrm11-Oct-09 23:54
stancrm11-Oct-09 23:54 
GeneralRe: Dynamically created Icon for Number in Taskbar Pin
freakyit11-Oct-09 23:59
freakyit11-Oct-09 23:59 
AnswerRe: Dynamically created Icon for Number in Taskbar Pin
Luc Pattyn12-Oct-09 0:04
sitebuilderLuc Pattyn12-Oct-09 0:04 
Questionhow to cancel eventArgs Pin
Mr.Kode11-Oct-09 23:02
Mr.Kode11-Oct-09 23:02 
AnswerRe: how to cancel eventArgs Pin
stancrm11-Oct-09 23:41
stancrm11-Oct-09 23:41 
GeneralRe: how to cancel eventArgs Pin
freakyit11-Oct-09 23:49
freakyit11-Oct-09 23:49 
Question[Message Deleted] Pin
Swetha Srinivasan11-Oct-09 22:45
Swetha Srinivasan11-Oct-09 22:45 
AnswerRe: Title for the TableOfContents Pin
Md. Marufuzzaman11-Oct-09 23:23
professionalMd. Marufuzzaman11-Oct-09 23:23 
QuestionC# Attributes and methods Pin
manustone11-Oct-09 22:42
manustone11-Oct-09 22:42 
AnswerRe: C# Attributes and methods Pin
Simon P Stevens11-Oct-09 23:24
Simon P Stevens11-Oct-09 23:24 
AnswerRe: C# Attributes and methods Pin
Luc Pattyn12-Oct-09 0:08
sitebuilderLuc Pattyn12-Oct-09 0:08 
Question[Message Deleted] Pin
egpuyos11-Oct-09 22:04
egpuyos11-Oct-09 22:04 
AnswerRe: Dictionary Problem Pin
dan!sh 11-Oct-09 22:10
professional dan!sh 11-Oct-09 22:10 
GeneralRe: Dictionary Problem Pin
egpuyos11-Oct-09 22:12
egpuyos11-Oct-09 22:12 
GeneralRe: Dictionary Problem Pin
N a v a n e e t h11-Oct-09 22:17
N a v a n e e t h11-Oct-09 22:17 

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.