Click here to Skip to main content
15,913,934 members
Home / Discussions / C#
   

C#

 
Questiontesting of Stored Procedure Pin
sreecahitu2-Apr-07 6:53
sreecahitu2-Apr-07 6:53 
AnswerRe: testing of Stored Procedure Pin
Colin Angus Mackay2-Apr-07 7:15
Colin Angus Mackay2-Apr-07 7:15 
QuestionHow to draw a Horizantal line in WindowsApp Pin
pashitech2-Apr-07 6:23
pashitech2-Apr-07 6:23 
AnswerRe: How to draw a Horizantal line in WindowsApp Pin
maryamf2-Apr-07 9:06
maryamf2-Apr-07 9:06 
QuestionComboBox and BindingSource Pin
mihksoft2-Apr-07 6:15
mihksoft2-Apr-07 6:15 
QuestionLimit number of copies of application to 1 Pin
polishprogrammer2-Apr-07 6:11
polishprogrammer2-Apr-07 6:11 
AnswerRe: Limit number of copies of application to 1 Pin
pbraun2-Apr-07 6:52
pbraun2-Apr-07 6:52 
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 

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.