上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 78 下一页
摘要: if (System.Web.Security.Membership.ValidateUser("admin", "123456")) { //这句话很重要,他就完成了登录;否则直接跳转,就还要输入密码才行。 FormsAuthentication.SetAuthCookie("adminzz", 阅读全文
posted @ 2018-05-27 12:57 qqhfeng16 阅读(226) 评论(0) 推荐(0) 编辑
摘要: FormsAuthentication.Authenticate()方法要验证的用户名和密码必须存储在Web.config文件内。如果要验证存储在“ASP.NET成员资格数据库”中的密码,则需要调用Membership.ValidateUser方法。 阅读全文
posted @ 2018-05-27 12:15 qqhfeng16 阅读(463) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-05-09 09:01 qqhfeng16 阅读(2) 评论(0) 推荐(0) 编辑
摘要: QrCodeEncodingOptions options = new QrCodeEncodingOptions(); options.CharacterSet = "UTF-8"; options.DisableECI = true; // Extended Channel Interpreta 阅读全文
posted @ 2018-05-03 11:27 qqhfeng16 阅读(478) 评论(0) 推荐(0) 编辑
摘要: /// <summary>/// 读取二维码/// 读取失败,返回空字符串/// </summary>/// <param name="filename">指定二维码图片位置</param>static string Read1(string filename){ BarcodeReader rea 阅读全文
posted @ 2018-05-03 11:25 qqhfeng16 阅读(870) 评论(0) 推荐(0) 编辑
摘要: static void Generate2(string text){ BarcodeWriter writer = new BarcodeWriter(); //使用ITF 格式,不能被现在常用的支付宝、微信扫出来 //如果想生成可识别的可以使用 CODE_128 格式 //writer.Form 阅读全文
posted @ 2018-05-03 11:24 qqhfeng16 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 生成二维码,保存成图片 /// </summary> static void Generate1(string text) { BarcodeWriter writer = new BarcodeWriter(); writer.Format = BarcodeF 阅读全文
posted @ 2018-05-03 11:22 qqhfeng16 阅读(354) 评论(0) 推荐(0) 编辑
摘要: C# Code:/// <summary>/// 生成二维码,支持中文/// </summary>/// <param name="data"></param>/// <returns></returns>private static Image GenerateQRBarcode(string d 阅读全文
posted @ 2018-05-03 11:21 qqhfeng16 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 一、打开文件 Stream myStream = null; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "d:\\"; openFileDialog1.Filte 阅读全文
posted @ 2018-05-02 11:48 qqhfeng16 阅读(241) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web; namespace ShowMessage { /// <summary> /// Msg 的摘要说明。 /// </summary> public class ShowMessage { public ShowMessage() {  阅读全文
posted @ 2018-04-26 15:05 qqhfeng16 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 78 下一页