Click here to Skip to main content
15,879,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: help Pin
SimpleData15-Mar-09 1:18
SimpleData15-Mar-09 1:18 
GeneralRe: help Pin
shefa' isied15-Mar-09 1:49
shefa' isied15-Mar-09 1:49 
GeneralRe: help Pin
SimpleData15-Mar-09 1:52
SimpleData15-Mar-09 1:52 
GeneralRe: help Pin
shefa' isied15-Mar-09 21:51
shefa' isied15-Mar-09 21:51 
QuestionWhy i crash ? ( code attached ) Pin
Yanshof14-Mar-09 21:11
Yanshof14-Mar-09 21:11 
AnswerRe: Why i crash ? ( code attached ) Pin
Expert Coming14-Mar-09 21:17
Expert Coming14-Mar-09 21:17 
QuestionHide tablelayoutpanel row dynamically Pin
Maddie from Dartford14-Mar-09 20:44
Maddie from Dartford14-Mar-09 20:44 
QuestionHow to check passwords are already exists? Pin
muhammadafsal14-Mar-09 20:24
muhammadafsal14-Mar-09 20:24 
Hello friends ,pls help me.
How to check username and passwords are already exists or not
how can i rewrite this code for checking passwords.

string x;
x = TextBox1.Text;
con.Open();
cmd = new SqlCommand("Select count(*) from registrations where username='" + TextBox1.Text + "' and password='" + TextBox3.Text + "'", con);
int count = (int)cmd.ExecuteScalar();
if (count != 0)
{
Session["id"] = TextBox1.Text;
Label5.Text = "Usre name already Exists ";

}


else
{
adp = new SqlDataAdapter("insert into registrations values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL ,NULL,NULL)", con);
adp.Fill(ds);
Response.Redirect("welcome.aspx?a=" + TextBox1.Text);

}
AnswerRe: How to check passwords are already exists? Pin
Blue_Boy14-Mar-09 20:36
Blue_Boy14-Mar-09 20:36 
AnswerRe: How to check passwords are already exists? Pin
Expert Coming14-Mar-09 21:11
Expert Coming14-Mar-09 21:11 
AnswerRe: How to check passwords are already exists? Pin
Eddy Vluggen15-Mar-09 2:46
professionalEddy Vluggen15-Mar-09 2:46 
QuestionA pointer as an argument ! Pin
Mohammad Dayyan14-Mar-09 20:22
Mohammad Dayyan14-Mar-09 20:22 
AnswerRe: A pointer as an argument ! Pin
Expert Coming14-Mar-09 21:14
Expert Coming14-Mar-09 21:14 
GeneralRe: A pointer as an argument ! Pin
Mohammad Dayyan14-Mar-09 21:21
Mohammad Dayyan14-Mar-09 21:21 
QuestionEnable Run ActiveX in web browser Pin
jsezar14-Mar-09 18:54
jsezar14-Mar-09 18:54 
QuestionHow to fire the list of AutoComplete in TextBox when it clicked, without enter any text Pin
12Code14-Mar-09 18:26
12Code14-Mar-09 18:26 
Questionrandom seeds? Pin
antrock10114-Mar-09 18:02
antrock10114-Mar-09 18:02 
AnswerRe: random seeds? Pin
Eslam Afifi14-Mar-09 19:34
Eslam Afifi14-Mar-09 19:34 
GeneralRe: random seeds? Pin
antrock10114-Mar-09 20:30
antrock10114-Mar-09 20:30 
AnswerRe: random seeds? Pin
Alan N15-Mar-09 1:17
Alan N15-Mar-09 1:17 
GeneralRe: random seeds? Pin
antrock10115-Mar-09 11:17
antrock10115-Mar-09 11:17 
GeneralRe: random seeds? Pin
Alan N15-Mar-09 13:40
Alan N15-Mar-09 13:40 
AnswerRe: random seeds? Pin
makumazan8415-Mar-09 2:27
makumazan8415-Mar-09 2:27 
GeneralRe: random seeds? Pin
antrock10115-Mar-09 11:28
antrock10115-Mar-09 11:28 
GeneralRe: random seeds? Pin
antrock10116-Mar-09 8:41
antrock10116-Mar-09 8:41 

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.