摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.I... 阅读全文
posted @ 2016-10-12 10:39 IsCarrie 阅读(2937) 评论(0) 推荐(0) 编辑
摘要: 用c#发邮件的简单写法 1:先定义一个EmailHelper类 2:调用 3:设置发送邮箱的smtp权限,网易邮箱的设置如下 点击设置-》选择pop3/smtp/imap 进入这个页面后勾上pop3/smtp和imap/smtp服务然后保存 最后就大功告成啦! 阅读全文
posted @ 2016-07-11 15:48 IsCarrie 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 这是我看《CLR via c#》第四版的一些小笔记和总结,如有不对的地方,欢迎指出。 《CLR via c#》第一章CLR的执行模型讲的是如何将源代码生成为一个应用程序,或者生成为一组可重新分发的组件(文件)- 这些组件(文件)包含类型(类和结构等),解释了应用程序如何执行。 CLR(common 阅读全文
posted @ 2016-07-08 11:06 IsCarrie 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 我们在建立网站服务时,有两种不同的web开发模式: 一、web应用程序(web application):web应用程序是透过http请求来存取web服务器的网页,或执行服务端网页技术的程序,例如:ASP,ASP.NET,JSP,PHP。 二、web服务(web services):透过通讯协定SO 阅读全文
posted @ 2016-06-25 17:34 IsCarrie 阅读(6871) 评论(0) 推荐(3) 编辑
摘要: 1 新建控台应用程序(过程忽略),其代码: 2 新建.bat文件用Notepad++或者其他的文件编辑器,编辑内容: @echo offstart "" "应用程序路径" %环境变量名% "参数"exit 3 新建系统环境变量:右键我的电脑-》属性-》高级系统设置-》环境变量-》系统环境变量-》新建 阅读全文
posted @ 2016-06-23 16:05 IsCarrie 阅读(996) 评论(0) 推荐(0) 编辑
摘要: this.Dispatcher.Invoke(new Action(delegate {System.Windows.Forms.MessageBox.Show("test");})); 阅读全文
posted @ 2016-06-22 17:09 IsCarrie 阅读(807) 评论(0) 推荐(0) 编辑
摘要: property和attribute都有属性的意思,在xml和html、xaml中的属性都是attribute。 c#中一般property是属性,而attribute是特性的意思。 例如: 阅读全文
posted @ 2016-06-07 11:12 IsCarrie 阅读(2028) 评论(0) 推荐(0) 编辑
摘要: C#共有五种访问修饰符:public、private、protected、internal、protected internal。作用范围如下表: public 公有访问。不受任何限制。 private 私有访问。只限于本类成员访问,子类,实例都不能访问。 protected 保护访问。只限于本类和 阅读全文
posted @ 2016-06-01 10:32 IsCarrie 阅读(1936) 评论(0) 推荐(0) 编辑
摘要: select * from (select *,ROW_NUMBER() OVER(ORDER BY(SELECT 0)) AS Rownum from employee) as table1 where table1.rownum >= 1 and table1.rownum <= 3 阅读全文
posted @ 2016-05-30 17:10 IsCarrie 阅读(162) 评论(0) 推荐(0) 编辑
摘要: public abstract class SQLHelper { //只读的静态数据库连接字符串 //需添加引用System.Configuration; public static readonly string connString = ConfigurationManager.ConnectionStrings["Connectio... 阅读全文
posted @ 2016-05-30 17:06 IsCarrie 阅读(1756) 评论(0) 推荐(0) 编辑