c#登录界面代码.docx

上传人:小飞机 文档编号:3060397 上传时间:2023-03-10 格式:DOCX 页数:2 大小:36.43KB
返回 下载 相关 举报
c#登录界面代码.docx_第1页
第1页 / 共2页
c#登录界面代码.docx_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《c#登录界面代码.docx》由会员分享,可在线阅读,更多相关《c#登录界面代码.docx(2页珍藏版)》请在三一办公上搜索。

1、c#登录界面代码c#登录界面代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsApplication1 public partial class Form1 : Form public Form1 InitializeCo

2、mponent; private void button1_Click(object sender, EventArgs e) string sqlstring = database=students_info;Trusted_Connection=yes; SqlConnection a = new SqlConnection(sqlstring); a.Open; SqlCommand b = new SqlCommand(select * from students2, a); SqlDataReader c = b.ExecuteReader; while (c.Read) if (this.textBox1.Text.Equals(cid.ToString) & this.textBox2.Text.Equals(cname.ToString) MessageBox.Show(正确); /else / / Response.Write(abc); / if (!this.textBox1.Text.Equals(cid.ToString) & !this.textBox2.Text.Equals(cname.ToString) MessageBox.Show(错误);

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号