登录
首页 » C# » .NET连接数据库登陆案例

.NET连接数据库登陆案例

于 2022-02-07 发布 文件大小:417.60 kB
0 118
下载积分: 2 下载次数: 1

代码说明:

一个简单的用户登陆的验证实例,用到了以下知识点: VS2010连接自带的SQL数据库,对数据库进行进行增删改查的操作 传统的字符串的拼接会带来SQL存在注入漏洞,此代码给出了解决方案

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Get-the-current-startup-mode
    如何使用SystemInformation类的公共属性BootMode获取当前的启动方式。单击“获取系统启动方式”按钮,则在弹出的提示框中将显示当前系统的启动方式信息(How to use the public property of the SystemInformation class BootMode get the current startup mode. Click the "acquisition system to start" button, the pop-up prompt box will show the start of the current system information)
    2012-03-11 16:52:03下载
    积分:1
  • EsayDayCE
    详细得的源程序 可工大家参看 谢谢 多指教(detail in the source code you can see the many exhibitions Thank you)
    2007-04-19 17:06:40下载
    积分:1
  • 突破delphi 7.0编程实例五十讲,pdg文件
    突破delphi 7.0编程实例五十讲,pdg文件-breakthrough programming examples of 50 speakers, PDG documents
    2023-06-23 20:50:05下载
    积分:1
  • fadh
    计算机算法基础第三版华中科技大学4.5.6。8章课后答案(Computer algorithm based on the third edition of Huazhong University of Science 4.5.6. 8 after the answer)
    2013-06-28 23:45:54下载
    积分:1
  • 实验9 PWM输出实验
    可以实验pwm输出实验,采用的是原子电路 ,使用STM32f103芯片(PWM output experimental atomic circuit)
    2019-06-25 16:25:37下载
    积分:1
  • 雷赛SMC-6480运动控制
    【实例简介】
    2021-08-02 00:31:03下载
    积分:1
  • C# 输入界面中的各种文本框判断效果演示
    这是一个实用的输入判断验证演示程序,面向C#编程环境,当用户输入的数据不正确或为空时,均会显示提示,不过这个提示是一个图标在闪烁,直到输入正确,下面是判断机制:   private void textBox2_Validating(object sender, System.ComponentModel.CancelEventArgs e)   {    if (textBox2.Text == "")//判断是否输入订货数量    {    errorProvider2.SetError(textBox2, "不能为空");//设置errorProvider2的错误提示    }    else    {    try    {    int x = Int32.Parse(textBox2.Text);//判断是否输入数字,如果不是数字会出现异常    errorProvider2.SetError(textBox2, "");// errorProvider2控件不显示任何错误信息    b = 1;//将b赋值为1    }    catch    {    //如果出现异常,设置errorProvider2控件的错误信息    errorProvider2.SetError(textBox2, "请输入一个数");    }    }   }   private void textBox3_Validating(object sender, System.ComponentModel.CancelEventArgs e)   {    if (textBox3.Text == "")//判断是否输入订货数量    {    errorProvider3.SetError(textBox3, "不能为空");//设置errorProvider3显示的错误消息    }    else    {    errorProvider3.SetError(textBox
    2022-01-25 17:43:07下载
    积分:1
  • balance_car2009.7.20
    两轮自平衡车程序,包括卡尔曼算法和PID算法,初步实现。(2 Since the balance of vehicles, including the Kalman algorithm and PID algorithm, basically.)
    2010-09-19 13:53:07下载
    积分:1
  • C++学籍管理软件
    该学籍管理软件提供录入学生信息功能,并将信息导入到txt文档中,还可以选取txt文档读取其中的学籍信息并显示在列表中
    2022-10-20 20:15:10下载
    积分:1
  • Step7VarExport
    c#example to access step7 wincc to export the varient
    2019-04-16 10:28:29下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载