<button ID="btnlogin" class="btn btn-primary btn-block btn-flat" type="submit" runat="server" oneserverclick="btnlogin_onClick" >Sign In</button> </div>
protected void btnlogin_Click(object sender, EventArgs e) {
protected void btnlogin_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["loginConnectionString1"].ToString()); con.Open(); string query = "select count (*) from log where username ='" + txtuser.Text + "' and password ='" + txtpass.Text + "' "; SqlCommand cmd = new SqlCommand(query, con); string output = cmd.ExecuteScalar().ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)