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

C#

 
QuestionHow to add a LabelCotrol to A DATAGRIDVIEW Pin
pashitech2-Apr-07 5:59
pashitech2-Apr-07 5:59 
QuestionMdi menus Pin
netJP12L2-Apr-07 5:32
netJP12L2-Apr-07 5:32 
AnswerRe: Mdi menus Pin
Stefan Troschuetz2-Apr-07 8:28
Stefan Troschuetz2-Apr-07 8:28 
Questionmanipulating request headers for a service call Pin
jhinze2-Apr-07 5:15
jhinze2-Apr-07 5:15 
QuestionClient Server Programming Pin
SakthiSurya2-Apr-07 3:55
SakthiSurya2-Apr-07 3:55 
AnswerRe: Client Server Programming Pin
Judah Gabriel Himango2-Apr-07 4:56
sponsorJudah Gabriel Himango2-Apr-07 4:56 
GeneralRe: Client Server Programming Pin
SakthiSurya2-Apr-07 18:21
SakthiSurya2-Apr-07 18:21 
QuestionFriends need help here! SQL Pin
krajah102-Apr-07 3:49
krajah102-Apr-07 3:49 
My password validater window form cant read the password from database that have been set please help me;
database name=testing
table name = table1
field name=password
the default password I set in password is "ABCD"
below is the coding:
/////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace cuba3
{
public partial class Form1 : Form
{
Form2 form3 = new Form2();
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender,EventArgs e)
{
string connectionString = "server = P-III; database =testing;uid=sa;pwd=;";

SqlConnection conn = new SqlConnection(connectionString);

string commandString = "SELECT password from table1";

SqlDataAdapter dataAdapter = new SqlDataAdapter(commandString, conn);

string strEnteredPassword = textBox1.Text;
if (strEnteredPassword == commandString)
{
this.Hide();
form3.ShowDialog();
}
else
{
MessageBox.Show("Wrong password entered");
this.Close();
}
}
}
}

tq in Advance.






AnswerRe: Friends need help here! SQL Pin
joon vh.2-Apr-07 3:53
joon vh.2-Apr-07 3:53 
GeneralRe: Friends need help here! SQL Pin
krajah102-Apr-07 4:50
krajah102-Apr-07 4:50 
GeneralRe: Friends need help here! SQL Pin
joon vh.2-Apr-07 4:54
joon vh.2-Apr-07 4:54 
GeneralRe: Friends need help here! SQL Pin
krajah102-Apr-07 5:11
krajah102-Apr-07 5:11 
QuestionUsing Regular Expression Pin
nasambur2-Apr-07 3:42
nasambur2-Apr-07 3:42 
AnswerRe: Using Regular Expression Pin
althamda2-Apr-07 3:51
althamda2-Apr-07 3:51 
GeneralRe: Using Regular Expression Pin
nasambur2-Apr-07 3:53
nasambur2-Apr-07 3:53 
GeneralRe: Using Regular Expression Pin
althamda2-Apr-07 3:53
althamda2-Apr-07 3:53 
GeneralRe: Using Regular Expression Pin
nasambur2-Apr-07 3:54
nasambur2-Apr-07 3:54 
GeneralRe: Using Regular Expression Pin
althamda2-Apr-07 3:58
althamda2-Apr-07 3:58 
GeneralRe: Using Regular Expression Pin
joon vh.2-Apr-07 4:50
joon vh.2-Apr-07 4:50 
GeneralRe: Using Regular Expression Pin
althamda2-Apr-07 4:59
althamda2-Apr-07 4:59 
QuestionDisable phone program Pin
Ashvin Gunga2-Apr-07 3:14
Ashvin Gunga2-Apr-07 3:14 
QuestionResources.resx Pin
JacquesDP2-Apr-07 3:10
JacquesDP2-Apr-07 3:10 
AnswerRe: Resources.resx Pin
Ashvin Gunga2-Apr-07 3:18
Ashvin Gunga2-Apr-07 3:18 
GeneralRe: Resources.resx Pin
JacquesDP2-Apr-07 3:29
JacquesDP2-Apr-07 3:29 
GeneralRe: Resources.resx Pin
Pete O'Hanlon2-Apr-07 3:34
mvePete O'Hanlon2-Apr-07 3: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.