摘要: 转:http://www.cnblogs.com/x369/articles/79245.html这只是一个简单的用C#写的WEB服务器,只实现了get方式的对html文件的请求,有兴趣的朋友可以在此基础之上继续开发更多功能,小弟学c#不久,如有错漏,望请见凉!!摘要:WWW的工作基于客户机/服务器... 阅读全文
posted @ 2014-06-04 09:16 cppwen 阅读(298) 评论(0) 推荐(0) 编辑
摘要: SqlHelper.cs带事务using System;using System.Collections.Generic;using System.Data.SqlClient;using System.Data;using System.Configuration;using System.Linq;using System.Text;namespace PDAFramework{ public class SqlHelper : IDisposable { //连接字符串 string conn_str; //sql连接对象 ... 阅读全文
posted @ 2013-12-02 23:36 cppwen 阅读(278) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/brucexuyg/blog/item/67fe4d5151a7c9888c5430e2.html一、为何要学编程?每个人的动机不一样。大致有:1、为了找个好工作;或为了有更好的机会和更好的发展。2、看到别人超厉害,所以也想学。3、实际工作中很多场合需要。4、从小就立志做个程序员,做软件工程师。5、振兴中国的软件事业。。。。。。。================================================二、如何学编程?1、多看好书。 差书误人子弟,不但浪费时间和精力,而且打击人的信心,差书使人很久都不会,让会让人怀疑自已的学习能力。 阅读全文
posted @ 2013-09-29 15:44 cppwen 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、上次遇到一个问题:建了一个WebService服务浏览的时候,弹出了一个身份验证的框。启用了IUSR_SERVER之后,还是还是不行。然后到计算机的安全策略->从网络访问些计算机,发现已经有了IUSR_SERVER这个用户,然后再添加一下居然可以了。参考:http://www.cnblogs.com/mxh691/archive/2009/03/12/1409319.html 阅读全文
posted @ 2013-09-29 10:37 cppwen 阅读(146) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace 泛型方法{ class Program { static void Main(string[] args) { int i = Finder.Find(new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 6); //int i = Finder.Find(new string[] { "1", "2", "3", "4", "5&quo 阅读全文
posted @ 2013-09-17 23:33 cppwen 阅读(210) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace 泛型{ class Program { static void Main(string[] args) { //实例化接口 IGenericl factory = new Factory(); //输出指定泛型的类型 Console.WriteLine(factory.CreateInstan... 阅读全文
posted @ 2013-09-17 23:21 cppwen 阅读(376) 评论(0) 推荐(0) 编辑
摘要: //dataGridView 删除选中行int num = dataGridView2.SelectedRows.Count;while (num > 0) { DataGridViewRow r = dataGridView2.SelectedRows[0]; r.Select... 阅读全文
posted @ 2013-06-19 10:19 cppwen 阅读(150) 评论(0) 推荐(0) 编辑
摘要: /// /// 合并DataTable,经保证两个DataTable的结构相同哦 /// /// 不重复的列 public DataTable SumDataTable(DataTable dt1, DataTable dt... 阅读全文
posted @ 2013-05-17 14:49 cppwen 阅读(199) 评论(0) 推荐(0) 编辑
摘要: alert 是浏览器的对象,而不是javascript的对象,双引号里面要用单引号dfdfd动态关联事件function f1(){alert("f1");}鼠标事件onclick(单击)ondblclick(双击)onkeydown(按键按下)onkeypress(点击按键)onkeyup(按键释... 阅读全文
posted @ 2013-05-11 11:36 cppwen 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 面页跳转是一个段落只是回车换行,它们是两行和两段的区别只有〈H1〉到〈H6〉"/"表示网站根目录"../"表示父目录"http://www.cnblogs.com/"表示父目录的父目录"./"表示当前目录,可以不写在新的窗口打开众里寻她千百度国内的网站大多在新窗口打开,国外的是在当前窗口打开如果没有... 阅读全文
posted @ 2013-05-11 00:10 cppwen 阅读(127) 评论(0) 推荐(0) 编辑