Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

https://www.facebook.

com/help/36519476354657

see-programming.blogspot.com/2013/05/c-program-to-implementdijkstras.html

http://scanftree.com/Data_Structure/prim's-algorithm

http://see-programming.blogspot.com/2013/05/closed-hashing-doublehashing.html

http://electrofriends.com/source-codes/software-programs/c/data-structuresc/c-program-for-infix-to-postfix-conversion/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace WindowsFormsApplication3
{
public partial class Form1 : Form

{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

SqlConnection con = new SqlConnection("Server=AAA;database=Log;Integrated


Security=true");
SqlCommand com = new SqlCommand("SELECT * FROM sajid_table WHERE
username=@sajid and password=@1 ", con);
con.Open();
com.Parameters.AddWithValue("@sajid", TextBoxUser.Text);
com.Parameters.AddWithValue("@1", TextBoxUser.Text);
SqlDataReader Dr = com.ExecuteReader();
if (Dr.HasRows == true)
{
MessageBox.Show("Correct");
}
else
{
MessageBox.Show("End");
}

}
}

You might also like