Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
GeneralRe: Default file image Pin
gwithey12-Oct-09 3:34
gwithey12-Oct-09 3:34 
AnswerRe: Default file image Pin
Henry Minute12-Oct-09 4:44
Henry Minute12-Oct-09 4:44 
QuestionConnect to a remote MySql DB Pin
SummerBulb12-Oct-09 2:28
SummerBulb12-Oct-09 2:28 
AnswerRe: Connect to a remote MySql DB Pin
stancrm12-Oct-09 2:31
stancrm12-Oct-09 2:31 
AnswerRe: Connect to a remote MySql DB Pin
SummerBulb12-Oct-09 2:38
SummerBulb12-Oct-09 2:38 
GeneralRe: Connect to a remote MySql DB Pin
stancrm12-Oct-09 2:46
stancrm12-Oct-09 2:46 
Questionthread problem Pin
Member 59031012-Oct-09 2:06
Member 59031012-Oct-09 2:06 
AnswerRe: thread problem Pin
stancrm12-Oct-09 2:14
stancrm12-Oct-09 2:14 
Questionpaging in Sharepoint document library Pin
Sudhir Mangla12-Oct-09 1:11
professionalSudhir Mangla12-Oct-09 1:11 
AnswerRe: paging in Sharepoint document library Pin
Not Active12-Oct-09 1:35
mentorNot Active12-Oct-09 1:35 
QuestionConnect to mapped network drive Pin
musefan12-Oct-09 1:05
musefan12-Oct-09 1:05 
AnswerRe: Connect to mapped network drive Pin
Henry Minute12-Oct-09 1:29
Henry Minute12-Oct-09 1:29 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 1:35
musefan12-Oct-09 1:35 
GeneralRe: Connect to mapped network drive Pin
Henry Minute12-Oct-09 1:49
Henry Minute12-Oct-09 1:49 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 2:42
musefan12-Oct-09 2:42 
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 

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.