Beispiel #1
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        string  email = txtemail.Text.ToLower();
        DataSet ds    = new DataSet();

        ds = conn.select("Select * from Login where Email='" + txtemail.Text + "'");
        if (ds.Tables[0].Rows[0][0].ToString() != "0")
        {
            mail.sendEMail(email, "Your Password : "******"Password"].ToString());
            Response.Write("<script>alert('Password has been emailed')</script>");
        }
        else
        {
            Response.Write("<script>alert('Email not found')</script>");
        }
    }