随笔分类 - .net
关于.net平台
    
摘要:Winform实现登录窗体中记住密码的功能,如图:代码如下:1、窗体Form1加载: List<UserInfo> item=new List<UserInfo>(); UserInfo userInfo = new UserInfo(); BUserInfo bUserInfo = new BUserInfo(); Dictionary<string, UserInfo> users = new Dictionary<string, UserInfo>(); private void Form1_Load(object sender, Even
        阅读全文
            
摘要:登录一般有两种方法:一种是字符串拼接的方法;另一种是参数法。一、字符串拼接法 SqlConnection con = new SqlConnection("Server=.;database=CESAW;Integrated Security=true;"); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "Select * from UserInfo where UserName='" + textBox1.Text.Trim() + &qu
        阅读全文
            
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号