摘要: 关键代码如下: SmtpClient client = new SmtpClient(smtp); client.UseDefaultCredentials = false; client.Credentials = new NetworkCredential(from, password); client.DeliveryMethod = SmtpDeliveryMethod.Network; ... 阅读全文
posted @ 2010-10-28 09:31 大奇异果 阅读(249) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;public partial class _Default : System.Web.UI.Pag... 阅读全文
posted @ 2010-10-28 09:29 大奇异果 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 程序代码:string sql = "select * from used_infotype where superid<=0 order by train asc select * from used_infotype where superid>0"; DataSet ds = DBHelper.GetDataSet(sql); ds.Tables[0].TableName = "... 阅读全文
posted @ 2010-10-28 09:29 大奇异果 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Asp.Net C#续上次的DES加密、解密之后,再发一个AES的加密、解密。AES要注意的是32位密匙。private static readonly String strAesKey = "iwww.maoblog.comiwww.maoblog.com";//加密所需32位密匙/// <summary>/// AES加密/// </summary>/// <pa... 阅读全文
posted @ 2010-10-28 09:26 大奇异果 阅读(3593) 评论(0) 推荐(0) 编辑
摘要: 开发中经常用到格式化,不管是时间、货币、数字都可以随心所欲。也许你用的是{0:C}方式,也许你用String.Format方式,也许你用.ToString("n"),都是格式化的方式。以下N多种格式化方式程序员们记住常用的就可以了,不常用的随用随查吧。 字符型转换 转为字符串 12345.ToString("n"); //生成 12,345.00 12345.ToString("C"); //生成... 阅读全文
posted @ 2010-10-28 09:24 大奇异果 阅读(494) 评论(1) 推荐(0) 编辑
Copyright ?2010 大奇异果 Contact QQ:408676935 E-mail:jialeifei@163.com