如何登录密码图片 [英] How do password image login
本文介绍了如何登录密码图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
密码图片登录无法正常工作消息
我尝试过:
password image login not work incorrect message
What I have tried:
try
{
if (!(textBox1.Text == string.Empty))
{
//if (!(pictureBox1.Image == string.Empty))
if (!(pictureBox1.Image == null))
{
// this.pictureBox1.Image.Dispose();
// this.pictureBox1.Image = null;
}
System.Drawing.Imaging.ImageFormat.Jpeg);
{
SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=DESKTOP-8BEJFRN\\SQLEXPRESS;Initial Catalog=win;Integrated Security=True";
con.Open();
SqlCommand cmd = new SqlCommand("SELECT username,pic FROM pe WHERE username='" + textBox1.Text + "' and pic='" + pictureBox1.Image + "'", con);
SqlDataReader dr = cmd.ExecuteReader();
推荐答案
无法正常工作
这意味着什么。请提供您问题的正确详细信息,这里没有人可以猜出你做错了什么。
"not work incorrect message"
That means nothing. Please provide proper details of your problem, no one here can guess what you are doing wrong.
这篇关于如何登录密码图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文