上一页 1 ··· 6 7 8 9 10

2009年5月13日

C# 中记Log 的一个方法

摘要: 在Server 发布目录上自动创建一个Log 文件夹.里面按日期生成一个txt 文件记log .[代码] 阅读全文

posted @ 2009-05-13 16:12 AndyCai 阅读(513) 评论(0) 推荐(0) 编辑

C# 调WebService 报请求因 HTTP 状态 401 失败: Unauthorized 的解决

摘要: 今天在C#中要用到WebService ,报了请求因 HTTP 状态 401 失败: Unauthorized 的问题.解决如下: MakerContact.MakerContact wsMakeContact = new ModelNotice.MakerContact.MakerContact(); wsMakeContact.Url = ConfigurationManager.AppSet... 阅读全文

posted @ 2009-05-13 16:09 AndyCai 阅读(1921) 评论(0) 推荐(0) 编辑

C# 用System.Net.Mail 发mail

摘要: 最近项目中有用到SMTP 发Mail ,作个记录!using System.Net.Mail;using System.Net;--------------------- MailAddress MailFrom = new MailAddress(mailFrom); --aaa@xxx.com MailAddress MailTo = new MailAddress(mailTo);---b... 阅读全文

posted @ 2009-05-13 16:07 AndyCai 阅读(292) 评论(0) 推荐(0) 编辑

2009年5月6日

GridView 中的事件

摘要: 转自网上: DataBinding 当服务器控件绑定到数据源时发生。 (从 Control 继承。) DataBound 在服务器控件绑定到数据源后发生。 (从 BaseDataBoundControl 继承。) Disposed 当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。 (从 Control 继承。) Init 当服务器控件初始化时发生;初始... 阅读全文

posted @ 2009-05-06 15:22 AndyCai 阅读(840) 评论(0) 推荐(0) 编辑

2009年5月5日

合并GridView 单元格

摘要: [代码] 阅读全文

posted @ 2009-05-05 13:34 AndyCai 阅读(203) 评论(0) 推荐(0) 编辑

2009年5月4日

VB.Net 中写Log 的方法

摘要: 最近在项目中有用到写Log 的功能.用VB.Net写的.如下: [代码] 阅读全文

posted @ 2009-05-04 10:51 AndyCai 阅读(1618) 评论(0) 推荐(0) 编辑

C# 中对一些消息处理的方法.

摘要: C# 中对一些消息处理的方法./// <summary> /// 客户端脚本:alert(Msg) I; /// </summary> /// <param name="Msg">要显示的消息</param> /// <returns>alert函数的客户端脚本</returns> public static string C... 阅读全文

posted @ 2009-05-04 09:21 AndyCai 阅读(241) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10

导航